I am pretty much following the method of
http://www.youtube.com/watch?v=OSRRYeRSES4 to invite Facebook friends to my
rails app. It works perfectly on my PC and it works on mobile when the app
is run inside Facebook. But when I run the app natively (iPhone or
Android), it opens the Facebook window but the friends list does not show
up. It was working fine on iPhone until a few days ago, and suddenly it
stopped working. The code is below. Any help will be greatly appreciated.
<div id="friends"><p> <%= link_to "Invite your Facebook friends", "#", :id =>
"invite_fb_friends" %> </p>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<% if !Rails.env.development? %>
<script>
$(function() {
$("a#invite_fb_friends").click(function() {
FB.init ({
appId: '222840481199747',
cookie:true,
statue: true,
oauth: true
});
FB.ui({method: 'apprequests', message:'Hey! We need beta
testers for this new app. No spam, ' +
'a bit of thinking before posting, and fun with
friends.' });
});
});
</script>
<% else %>
<script>
$(function() {
$("a#invite_fb_friends").click(function() {
FB.init ({
appId: '545802082165826',
cookie:false,
statue: true,
oauth: true
});
FB.ui({method: 'apprequests', message:'Hey! We need beta
testers for this new app. No spam, ' +
'a bit of thinking before posting, and fun with
friends.' });
});
});
</script>
<% end %></div>
--
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.