Custom URL scheme for new Facebook iOS app

后端 未结 5 1881
星月不相逢
星月不相逢 2020-12-07 23:34

Does anyone know what the custom URL scheme is to open a Facebook page in their new iOS app. I was using fb://page/PAGE_ID however this doesn\'t seem to be working in the re

相关标签:
5条回答
  • 2020-12-07 23:49

    I got this answer at developer.facebook.com:

    Replace the word page with profile and it will work. Your new statement will be:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/247377102029332"]];
    
    0 讨论(0)
  • 2020-12-07 23:54

    Use https://graph.facebook.com/YOUR_USERNAME to get your page ID.

    In your iOS app use: fb://profile/[your ID] and the facebook app will open to your page.

    0 讨论(0)
  • Same problem here. fb://page/PAGE_ID is not working anymore. Note that fb://profile/(fbid) wasn't working properly on Facebook 4.x returning a "corrupted" page in both iPad and iPhone. Instead, fb://profile/(fbid)/wall in Facebook 4.x worked well when using an iPad but didn't work with an iPhone.

    fb://page/PAGE_ID was the only option that worked on both iPhone and iPad, based on my experience.

    I used to use http://wiki.akosma.com/IPhone_URL_Schemes as reference, but it's currently down...

    0 讨论(0)
  • 2020-12-08 00:03

    A custom URL scheme is a mechanism through which third-party apps can communicate with each other. It doesn't allow you the provision to open a page in that particular application. It just fires an event to bring the called Application to the foreground. Going through this documentation would further clear your doubts.

    The new Facebook app is built using Objective-C as against previous once in HTML5 which used to support URL scheme mechanism. This link gives a hint on that.

    http://techcrunch.com/2012/08/23/facebook-for-ios-faster/

    0 讨论(0)
  • 2020-12-08 00:06

    The URL scheme for the iOS Facebook application is:

    fb://profile/(fbid)

    0 讨论(0)
提交回复
热议问题