I have an app-scoped user id (ASUID) for a Facebook user and I wish to obtain a link to that user’s profile page.
A post on Facebook’s Developer blog dated May 1, 2018 states that this link is accessible as of Graph API v3.0 through the link
field on a user object. Access to this field requires the user_link
permission be approved for the app and granted by the app user.
I have attempted to access this field with a user access token associated with my test app and I have verified the access token has the user_link
permission granted via the Access Token Debugger. However, the link is not included in the response.
Request:
https://graph.facebook.com/v3.0/[ASUID]?fields=link&access_token=[ACCESS_TOKEN_W_USER_LINK_PERMISSION]
Response:
{ "id": "[ASUID]" }
Is there any indication as to why this is not working?
2
Answers
As documented, the
user_link
permission requires an App Review pass before it’s available to live apps.At time of writing this answer there is no way to get user profile page using Facebook API.