skip to Main Content

I am trying to get permission to access user’s public profile so I can provide a link to this person’s profile to other people using an app.

within the api response, we have a “link”, but it is a https://facebook.com/… link, and not some intent link like fb://profile/<id>

So how can I create this link without global user id and username?

I also tried to use fb://facewebmodal/f?href=<link> but it redirects me to my own facebook home page (feed)

Thank you!

2

Answers


  1. Chosen as BEST ANSWER

    This is a closed bug that Facebook didn't fixed: https://developers.facebook.com/bugs/332195860270199

    But I could find a solution!!! All you have to do is to get the scoped link that facebook graph api generates (link permission) and replace the https://facebook.com/app_scoped_user_id/ with fb://profile/?app_scoped_user_id/ leaving the rest of the link as it is.

    I hope this can help you.


  2. Dhiogo’s anwser is not working anymore. Facebook’s API retrieves an user_id when the user authenticates within your application. So all you have to do is use this user_id like this:

    fb://facewebmodal/f?href=https://www.facebook.com/profile.php&user_id=[user_id]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search