ruby on rails - Creating user invite button with Facebook API -
i'm trying create button on 1 of pages allows users invite friends use web app them. when click on link i've created invite button, nothing happens. missing? i'm new coding i'm little bit lost next. show.html.erb file: <% if current_user %> <div id="friends"> <p> <%= link_to "invite facebook friends", '#', :id => 'invite_fb_friends' %></p> <div id="fb-root"></div> <script src="http://connect.facebook.net/en_us/all.js"></script> <script> $(function(){ $("a#invite_fb_friends").click(function(){ fb.init({ appid:'my app id', cookie:false, status:true }); fb.ui({ method: 'apprequests', message: '<%= @user %> invited collaborate on story.'} requestcallback;); };) }); </script> </div> <% end %> i'm using these ge...