I set user_friends in my scopes permission in App Admin but when I check on debug does not appear and don't work on my app too.
Facebook Debug:
https://developers.facebook.com/tools/debug/accesstoken?q=CAAUmV9ZC6W1kBAIhAUJFVQ64ArT25JlIPDGyCCpZAx4VUvHqpOnPBaSEsn7wY0GZCczcT9YDE3C8kSHQu5xqJKFra9VlNk7opmuMa2FARetRYBfntcZB8BlKT0YiEGTqI3fVeJG39fz5PmEoSBpZCKzk6xZBknlZAAgYHRUVhczxtsahXFevI5rKIbNm7Yk0KLYjUrcyxpAEgZDZD&version=v2.0
Token:
CAAUmV9ZC6W1kBAIhAUJFVQ64ArT25JlIPDGyCCpZAx4VUvHqpOnPBaSEsn7wY0GZCczcT9YDE3C8kSHQu5xqJKFra9VlNk7opmuMa2FARetRYBfntcZB8BlKT0YiEGTqI3fVeJG39fz5PmEoSBpZCKzk6xZBknlZAAgYHRUVhczxtsahXFevI5rKIbNm7Yk0KLYjUrcyxpAEgZDZD
If you created your app after May 1st on facebook developer portal, you will be restricted to using the newer V2 API.
In the new API, you can no longer get a list of all facebook friends for a user. You can only get friends who are also registered with your application. So if you have no friends on facebook, that are registered on your app through facebook login/oauth, you will get an empty response.
Related
I am attempting to get events from a specific page, through a person who is administrator of the site and the host of the events. This will not work unless i make the administrator a tester on my Facebook App. Anyone who knows which permission i am missing?
I have the following permissions already:
business_management
manage_pages
public_profile
publish_pages
user_friends
EDIT
Facebook API Explorer
Facebook API Explorer
Access Token Info
https://developers.facebook.com/docs/graph-api/reference/page/events:
This is a restricted edge. You cannot request access at this time.
Facebook has restricted this to specific partners; as a normal 3rd-party app developer you can not get page events at this time.
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?
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.
On my app, i have a feature that uses the user's facebook "user_friends" permission.
It used to work before they upgraded to API V.2.0, but now it does not:
When I created the app on FB and used test users (in development mode) my feature that includes this permission worked.
But, when i turned on the app (to be live) - it does not work.
So - it works on Test users but not on Live users.
How is that possible?
This is because /me/friends will only return those friends which also have used (via Facebook Login) the app making the request.
See
https://developers.facebook.com/docs/graph-api/reference/v2.3/user/friends/#readperms
This will only return any friends who have used (via Facebook Login) the app making the request.
If a friend of the person declines the user_friends permission, that friend will not show up in the friend list for this person.
Can i post on wall by CRON when my account haven't permissions to my app?
This is my APP, i can manage her in https://developers.facebook.com/app and i'm admin of this APP. I want post from admin account, no from other users.
I use long-live access token but, when my account haven't permission to app API show error and API need this permissions.
Maybe offline_access? What about setAccessToken?
I user facebook PHP API.
offline_access have been deprecated since SDK 3, so you should get a long-lived access token. Get long live access token from Facebook
I'm doing an IOS app with facebook SSO. Upon user granted facebook permission to the app, the app will receive an access token. The app will then make an API call to the backend with ONLY the access token.
So is the backend possible to retrieve basic user information with ONLY access token while the user's facebook id is unknown?
Looking forward to an answer. thank u=)
Yes, once you have a user access token /me can be used as a placeholder for the current user's user ID
so /me/friends returns the access token user's friends, etc
It's a bug that has been recorded and fixed by Facebook. Update your base_facebook.php to versions 3.2.2.
You can track the bug here: https://developers.facebook.com/bugs/238039849657148