nickdnk
nickdnk

Reputation: 4310

Facebook - open profile by app_scoped_user_id

I have a list of facebook users' app_scoped_user_id, which was what is stored in our database and returned by our app when the app requests permission to view the profile.

I can open the profile by going to http://facebook.com/app_scoped_user_id/(id).

How can I get an iOS app to open the native facebook app and view the profile by ID?

fb://profile/(id) doesn't work, as that page wants the "Facebook ID", which isn't the app_scoped_id.

What do I do here? I don't understand why this is not possible. If I open facebook.com/(app_scoped_id) in browser it works. If I open that page as a "link in textview" in the app, it opens a blank event page (no clue why it goes to events?). If I open facebook.com/events/valideventID - it opens the correct event.

I just want to open the user's facebook profile in the app based on his/her app scoped ID.

Upvotes: 1

Views: 2343

Answers (1)

Lennart
Lennart

Reputation: 56

As mentioned in the bug report on https://developers.facebook.com/bugs/332195860270199 opening the Facebook profile with fb://profile?app_scoped_user_id=%@ is not supported.

You will have to open the Facebook profile within Safari (http://facebook.com/%@). It's annoying but works as a workaround ...

Maybe you could comment under the bug report that you need this feature like I did.

Instead of using Safari you could also use an in app web browser. This it what I'll try.

Upvotes: 3

Related Questions