I have an app in facebook, I'm trying to find the user of a specific comment but I can't get the from field to populate.
I have an Page Access token with these scopes
pages_show_list, pages_messaging, instagram_basic, instagram_manage_comments, pages_read_engagement, pages_manage_metadata, pages_read_user_content, pages_manage_engagement, public_profile
What am I missing here? Any help appreciated!
Related
We are connecting to the FB API to retrieve an access token to be able to publish a post on the user FB page.
We request this permissions:
email, read_insights, pages_show_list, pages_read_engagement, pages_manage_metadata, pages_read_user_content, pages_manage_ads, pages_manage_posts, pages_manage_engagement, public_profile
When user first connects to their Facebook page the connection is ok and we get all the permissions, all great. However, when the same user tries to connect to a second page the first page access token loses all the permissions and it's left with:
email, read_insights, pages_show_list, public_profile
It seems Facebook remove the first page permissions after the second page permissions are granted.
Any ideas why this happens?
I have a website which should list all the events from my facebook group. So I created a facebook dev account and created an app.
When I tried to get the data with the graph API explorer it worked, but the access token expired after a few hours. So I had to get a never-expiring access token.
I created a sytem user at the facebook business manager. With the system user I got a never-expiring access token but I couldn't get the event data anymore. Everytime I tried it I got this response.
"Unsupported get request. Object with ID 'xxxxxxxxxxxxx' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api"
I have the following permissions as system user:
read_insights, read_audience_network_insights, manage_pages, pages_manage_cta, pages_show_list, publish_pages, business_management
Why did it fail? Are the permissions correct?
Thanks for your help.
I have a React application where I'm able to link accounts from different social medias to the main username and password account. I linked my Facebook account where I manage several other page and I assumed that with the user_id and access_token that comes back from Auth0 I'd be able to access my pages but I haven't been able to do that. Does my Auth0 app need to be reviewed by Facebook before I get access ?
When I go to the Graph API Explorer, paste in the access_token from Auth0 and try to access ${user_id}/accounts, I get the following Debug message:
The field 'accounts' is only accessible on the User object after the user grants either the 'pages_show_list' or 'manage_pages' permission.
even tho I clearly granted those permission on Auth0->Connections->Social.
What am I missing here ?
Any push in the right direction would be greatly appreciated.
I'm using a Facebook app (in development mode) to generate a page access token so that my personal web app can schedule/edit/delete posts on a Facebook fan page.
I'm using the Graph Explorer to generate the token while logged in as the admin of the fan page.
When I use that token, I'm able to GET a list of the scheduled posts, but whenever I try to edit or delete a post, I get this error:
"User does not have sufficient administrative permission for this action on this page."
Here is the debug of the token:
Any ideas on how to fix this?
Here according to the documentation
DELETING YOUR POST
These are the permissions you need in the scope of your token.
To delete a user's post, a user access token with publish_actions permission is required.
To delete a Page's post a Page access token and publish_pages permission is required.
To delete a User's post on Page a Page access token is required.
To delete another User's post on a Page-owned event the user_managed_groups permission is required.
UPDATING YOUR POST
A user access token with publish_actions permission.
SO you need publish_actions permission within the scope of your token.
Update 1
Also check here if you have the valid page role
i have a facebook pagetab app this app is installted on pages where i'm not the admin.
Can i post on this pages with the app by using the facebook api.
Sorry for my bad english and thx for answers!
Since you are not the admin of the page, you can't publish to their page using your app! Since, to publish new posts on behalf of tat page, a page access token with publish_actions permission is required. (see more on this here)
And to generate a page access token, an admin of the page must grant an extended permission called manage_pages. Once this permission has been granted, you can retrieve the page access token using the following Graph API request:
GET /{user-id}/accounts
So only the admin could generate the page access token, and if you have that (of course with his perms :P), you can post on that page on its behalf!