ruby on rails - Why I can not get the facebook connect button with facebooker? -
my rails version 2.3.4.
at first install gem
gem install facebooker
and add these code 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 code application_controller
before_filter :set_facebook_session helper_method :facebook_session
but cannot see blue connect button!
i think miss something, can give me advice? thanks!
i found problem. if using jquery code need be:
<%= fb_connect_javascript_tag :js => :jquery %>
Comments
Post a Comment