Suddenly not fetching Facebook Pages for any users upon authenticating their Instagram account
3

Hello! Towards the end of last week, our app suddenly lost the ability to fetch a user's Facebook Pages upon authenticating their Instagram account through the Facebook SDK for Javascript, v16. If we don't detect any Facebook pages, we show the authentication attempt to have failed.

To be a bit more specific, our app has a page where a user can click on a link to "connect" their Instagram account to our platform. I.e. we call the FB.login() function, passing in "manage_pages, instagram_basic" to the scope field. We then take the resulting access token and facebook account id from the response and make a follow-up call to the Graph api endpoing /{fbAccountId}/accounts. Normally, the response would have a "data" field equal to an array of pages that we then work with on our end, but starting some time as recently as last Thursday, "data" is now returning an empty array for all users who have tried logging in.

We were wondering, does this have something to do with our "pages_manage_ads" and "pages_manage_metadata" permissions currently having the "revoked" status? There doesn't seem to be a way to tell from the dashboard how long ago we lost access to these permissions. However, if it was some time last week, then perhaps that is the reason we are no longer able to fetch any pages.

The reason I'm asking is because we've actually still been passing in the "manage_pages" permission this entire time. But it looks like that permission was deprecated on version 7 of the JS SDK and replaced with four new permissions: pages_manage_ads, pages_manage_metadata, pages_read_engagement, and pages_read_user_content. So our theory is that perhaps the api saw that we were still passing in the old permission and then ran the updated permission checks over the four new permissions "under the hood", so that the deprecated permission was still valid. And now that two of those four permissions are revoked, the check fails.

If this is indeed the reason, then should we re-submit our app for App Review to obtain those permissions again? Or is there perhaps some other reason we're suddenly not able to fetch Facebook Pages that we're not aware of. Some sort of API update maybe?

Please let me know if there's any additional info I can provide, such as the app Id, etc.

Side note: We're actually also authenticating Facebook with the same "manage_pages" permission, but are still able to fetch Facebook Pages using the access token and facebook account id from that callback, for some reason.

Thank you!

Benjamin
提问时间: 约 8 个月前
Luca

We started seeing this issue last week with https://graph.facebook.com//me/accounts. It only returns a subset of accounts, even if the user selects more in the oAuth grant flow.

We are only requesting the instagram_basic scope, and all accounts that the user granted have Instagram accounts, but only a subset of them are being returned in this API call. We've tried different versions of the GraphAPI but it happens on all.

2月27日 00:57
已选回答
1

There is a thread about that, the problem is that with v19 all apps need business_management advanced access for me/accounts to return data

2月27日 08:05
Karol
Benjamin

We have the business_management permission with the advanced access level though. And I should also mention I've tried al versions from 16 to v19, and all of them have the same problem.

Last month, I actually tried upgrading from v16 to v19, and found that all versions aside from v16 were giving us no pages, which is why I stuck with v16. However, now v16 is suddenly not giving back any pages as well.

2月27日 09:22
Dumi

My FB page would be fetched with v20.0/me/accounts, but as soon as i connect my instagram to the page, it stops showing that page in v20.0/me/accounts. Even if i remove instagram connection from the ( not being fetched due to insta connection ) fb page, it still won't show ???

6月21日 01:31