FB.ui dialog not displayed on mobile devices

10,596

I used a URL redirect for my mobile devices like here: http://developers.facebook.com/docs/guides/mobile/#web

To display a mobile-friendly Feed Dialog, redirect the user to the following URL:

http://www.facebook.com/dialog/feed? client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch

I assume it works similarly for the apprequests method you are using.

Share:
10,596
dheerosaur
Author by

dheerosaur

I am programmer passionate about the Web. I hack in JavaScript and Python mainly, but dabbled in many different languages and frameworks. I love HTML5, CSS3, Vim, Bash and Git.

Updated on June 21, 2022

Comments

  • dheerosaur
    dheerosaur about 2 years

    I am using FB.ui to trigger a requests dialog. The dialog loads properly on non-mobile devices. However, it fails to load on mobile devices like iPad. What appears is something like a popup/iframe with a loading-gif.

     FB.ui({
                method: 'apprequests', 
                message: 'Hello People',
                title: 'A friendly hello',
                data: 'some-data',
                display: 'touch',
                access_token: my_access_token,
            }, callback);
    

    I have tried with display: 'iframe', display:'popup', display: 'wap' and display: 'page'. But nothing works. How can I get it working on mobile devices? Thank you.

  • dheerosaur
    dheerosaur almost 13 years
    I have tried this solution on iPad and still couldn't get it working with apprequests. I will try one more time when I have time and mention the result here. Thanks for the response.
  • Evan Layman
    Evan Layman almost 13 years
    It may not work in the same way as the feed dialog but I thought it was worth trying. Good luck and maybe someone with some more experience can help you out.
  • Verbeia
    Verbeia over 12 years
    It's also possible the mod thought you were plugging your blog instead of providing a relevant answer. I've inoculated your answer against this, I hope, by adding the solution to your answer instead of expecting people to click through to your blog. People are much more likely to use the answer if it is self-contained in the SO site.