Dave,

Thank you. Yes, I must have made that typo while trying various options. But 
fixing the typo it did not fix the problem. Interesting that it worked with 
this typo in the other situations. Must be a clue somewhere there. 

Thanks again,
Ephraim

Sent from my iPhone

> On Nov 18, 2013, at 10:55 AM, Dave Rogers <[email protected]> wrote:
> 
> Ephraim,
> 
> Not sure if this is the reason but you have a typo in FB.init . The 'statue' 
> option should be 'status'.
> 
> - Dave
> 
>> On Monday, November 18, 2013 at 10:32 AM, Ephraim Feig wrote:
>> 
>> 
>> 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.
> 
> -- 
> -- 
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "SD Ruby" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sdruby/0-zbki5cSj8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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.

Reply via email to