开发者

Why I can not get the facebook connect button with facebooker?

My rails version is 2.3.4.

At first I install the gem

gem install facebooker

and then add these code to login page

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> 
<%= fb_connect_javascript_tag %>
<%= init_fb_connect "XFBML" %> 
<%= fb_login_and_redirect(facebook_login_users_path) %>

and add some code to application_controller

before_filter :set_facebook_session
helper_method :facebook_session

But I cannot see the blue connect button!开发者_如何学Go

I think i miss something, who can give me some advice? thanks!


I found the problem. if using jquery the code need to be:

<%= fb_connect_javascript_tag :js => :jquery %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜