I am posting to a facebook page I manage using facebook API. Till yesterday I was able to post using facebook graph API. Suddenly I started seeing the permission issue for publish_pages permission. It is as if this specific permission has been revoked from the token (I verified using token debugger). When I try to generate a new user access token with relevant publish_page permissions, I do not see the permission for publish_page in the graph explorer.
The token I was using was generated using user access token with relevant permission to get a token for page.
From doc I see that we do need App review for publish_page permission. But so do we need it for manage_page permission. My token has manage_page permission and I can see option for this manage_page permission in graph explorer when I generate user access token.
I see option to get publish_page permission when I try to generate token for page. But when I try to select the option I get below error:
Invalid Scopes: publish_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions
Do I need to get my app verified before I can post to page I manage?
What else can I try?
There is a bug report about this: https://developers.facebook.com/support/bugs/2261820083829739/
I still get an error for one of my Apps that was working before, so I can confirm that it is still not fixed:
Invalid Scopes: read_page_mailboxes, instagram_basic,
instagram_manage_insights
Edit: Just found another bug report about it: https://developers.facebook.com/bugs/600976503711113/
Related
I'm trying to run the following:
<my_insta_fbid>?fields=business_discovery.username(<business_page>)
on https://developers.facebook.com/tools/explorer
But I'm getting an error (#10) permission denied
My app is approved for instagram_basic, User Token also includes it
Business verification is passed too
I have Instagram Graph API and Instagram Basic Display products included
Instagram account is connected to my fb that generates user token(but created separately)
Insta account I use is included into Instagram Basic Display
Of course, I use and request instagram business accounts
I tried both Live and Development app modes
All the other requests related to <my_insta_fbid> like name or biography work. The only that fails is business_discovery
What else am I missing?
I found it!
My tests have shown that I was missing the instagram_manage_insights permission.
I didn't find any mentions of this in the documentation but it worked in my case
I am trying to add a new Admin (facebook user) to a facebook Page using Graph API as shown in the screenshot but i get an error message:
"(#200) Either app or user doesn't have permission to modify admins."
When i check the access_token permissions it looks like i have everything in scope and still the request fails. Anyone has encountered this before?
Please check the attached screenshots.
Graph API request
Page AccessToken permissions
I want to use the FacebookClient to post a message on my own site. I need to have a user access token (no expiration). That's possible with the Grpah API explorer. The token need the publish_pages en manage_pages permission.
But since 1 may it is not possible anymore to get this permission without review. I understand that a review is needed now when anyone has to post on my business facebook, but in my case, only I need to post the message. How can I get this without reviewing?
I can successfully pull statistics from the FB API using the temporary access token, however I followed the instructions to generate a token that never expires from this thread.
Long-lasting FB access-token for server to pull FB page info
It does indeed work. But then when trying to using this Page token I get the following error:
Fatal error: Uncaught exception 'FacebookAds\Http\Exception\AuthorizationException' with message '(#272) This Ads API call requires the user to be admin of the application. User XXXXXX not admin or developer for application XXXXXXX.' in
C:\www\projects\dashboard2014\vendor\facebook\php-ads-sdk\src\FacebookAds\Http\Exception\RequestException.php on line 129
However the user is an Admin of the application! I can see it in the application settings. Also I can see the token has the following permissions:
"perms": [
"EDIT_PROFILE",
"CREATE_CONTENT",
"MODERATE_CONTENT",
"CREATE_ADS",
"BASIC_ADMIN"
]
In the App settings I also put the Ad account ID in the "Authorized Ad Account IDs" field and this doesn't work still.
If I use the temporary access token from the Graph API Explorer then I am able to pull in data from any campaign in the ad account with no problem, the problems seems to be that this is a Page access token, so there's a slight difference somewhere but I can't seem to work it out?
I don't mind having a different long life access token for every Page rather than just one for the whole account however it's not working. Thanks
I logged-in to facebook manually, creating accesstoken, logged out.
Tried to publish in my timeline using my java app, I got
java.lang.Exception: {"error":{"message":"Error validating access token: The session is invalid because the user logged out.","type":"OAuthException","code":190,"error_subcode":467}}
I've ticked the check box for publish_stream and offline_access at least while creating access token.
How could I publish in my timeline without getting logged manually each time.
The offline_access is deprecated.
The most easy way is to use page token because this is an unlimited session token.
See there how to get it : Facebook Access Token for Pages