Swift Open Facebook Profile by FacebookUID

前端 未结 5 1189
别跟我提以往
别跟我提以往 2020-12-20 16:29

I\'m trying to open a user\'s Facebook profile in Swift using their Facebook UID. In the Simulator, it works and opens up the web version of the profile and works fine, howe

5条回答
  •  轮回少年
    2020-12-20 17:04

    Hi based on documentation Facebook ID is the App-scoped User ID so you can use like

    fb://profile?app_scoped_user_id=%@
    

    But also check bug report on https://developers.facebook.com/bugs/332195860270199 opening the Facebook profile with

    fb://profile?app_scoped_user_id=%@

    is not supported.

    So you will have to open the Facebook profile within Safari or you can use in app webview to open user profile. I have check with some facebook id 10000****889,10000***041 etc. all have open profile in facebook app.Yes some have same error.Page bot found.

    May be there is Privacy setting->Do you want search engine outside link to your profile->No. restrict search.

    To get ids of user from facebook Trick :

    1)Right click on the person or page's profile photo, select properties and the ID will be included in the page

    2)In mobile browswe if you open photo there is id E.g. " fbid = *** & pid = 1000....89 " so 1000....89 will be your user id

提交回复
热议问题