Facebook Graph API explorer and missing read_stream permission - facebook-graph-api

I'm trying to test me/home api but it complains about missing permission:
(#200) Requires extended permission: read_stream
The problem is that Get Access Token / Extended Permissions window does not have such entry. I only have:
ads_management ads_read email manage_pages publish_actions
publish_pages read_custom_friendlists read_insights
read_page_mailboxes rsvp_event
How can I play with this API in Explorer ?

read_stream is deprecated, try with user_posts instead.
Changelog: https://developers.facebook.com/docs/apps/changelog#v2_4_deprecations

Edit:
See: https://developers.facebook.com/docs/apps/changelog#v2_4_deprecations
The GET /v2.4/{user_id}/home, GET /v2.4/{user_id}/inbox, and GET /v2.4/{user_id}/notifications operations as well as read_stream, read_mailbox, and manage_notifications permissions are deprecated in v2.4.`
The whole operation is deprecated.

Related

Fb/Instagram Graph API: (#10) permission denied on business_discovery

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

Post details api call with manage_page permission

We have many client accounts that have recently started returning permissions errors when fetching post details using a page access token with manage_pages permission. Many other client accounts do not have this problem.
The specific error message returned is as follows, (page and post ids blanked)
/_?fields=shares,reactions,sharedposts returned error (#10) This endpoint requires the 'manage_pages' or 'pages_read_engagement' permission or the 'Page Public Content Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages and https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS for details.
In our api call we are presenting a recently connected and valid page access token with manage_pages permission; can you provide any advice about how to further diagnose this?

Post to a Facebook page that I manage using Graph API

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/

Getting 403 with posting to my wall on facebook using API

I have created an app on facebook and given it following permissions in the required field.
Now I am trying to Post title and Link. This gives me an error
{HttpStatus: 403, errorCode: 200, subErrorCode: -1, errorType: OAuthException, errorMessage: (#200) Requires either publish_actions permission, or manage_pages and publish_pages as an admin with sufficient administrative permission}
Any help in this regard will be of much help. The app is still in development mode and I am the admin to the app on Facebook.
Effective August 1st, 2018, the Facebook API no longer supports the publish_actions permission, effectively preventing any third-party application from posting on a user's behalf.
Source: https://developers.facebook.com/blog/post/2018/07/31/platform-update-publish-permission/

Facebook ads authorisation

My application use facebook authentication to ask the user permissions to manage his ads. i use the following scope:'public_profile,ads_management,ads_management'
but in the login window it shows only public profile which will an invalid access token for the ads management.
have a look at this answer https://stackoverflow.com/a/25901780/5410373
the ads_management extended permission is only granted to whitelisted apps. So if the Graph endpoint you're hitting requires that permission then you'll have to get your app approved. Check out the getting started overview https://developers.facebook.com/docs/reference/ads-api/overview
and this answer : https://stackoverflow.com/a/24753070/5410373
All permissions except
public_profile
user_friends
email
require a review of your app by Facebook before you can use them publically. See https://developers.facebook.com/docs/apps/review/login#do-you-need-review