Nico
Nico

Reputation: 1650

Open facebook iOS app on a specific page

Does someone know how to deep-link into Facebook iOS app?

I googled it and found solutions like:

  • fb://PAGENAME
  • fb://page/PAGENAME
  • fb://profile/PAGENAME
  • http://www.facebook.com/PAGENAME
  • ...but none of them are working anymore, neither on Facebook iOS 6 app, nor on Facebook iOS 7 app.

    The only solution I found is to link to: http://m.facebook.com/PAGENAME. This works by opening Safari, but the experience is pretty bad as the user is not necessarily logged in.

    Thanks,

    Upvotes: 4

    Views: 2043

    Answers (2)

    David Vignoni
    David Vignoni

    Reputation: 21

    I've found that using the page id with a simple Facebook url, like in the example below:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString: http://www.facebook.com/PAGEID]];
    

    it will …

    1. If Facebook is installed: open the page in the app
    2. Else: open the page in Safari

    I tested this on iOS 7, can't guarantee it works on older versions.

    Upvotes: 2

    Marcelo
    Marcelo

    Reputation: 9944

    Try with the page id:

    fb://profile/137947732957611
    

    Upvotes: 8

    Related Questions