php – Instagram Graph Api, instagram_business_account ID doesn't work as an endpoint-ThrowExceptions

Exception or error:

I’ve been fetching Instagram entries using the Graph API and PHP SDK.

Normally I would grab the instagram_business_account ID from the me/accounts endpoint and query it for media associated with that account. I use this approach for several accounts and all of those are working as they should.

However, for one particular account that worked previously, I get the following when I try to use the instagram_business_account ID that is returned to me from me/accounts :

    {
      "error": {
        "message": "Unsupported get request. Object with ID '******************' 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",
        "type": "GraphMethodException",
        "code": 100,
        "error_subcode": 33,
        "fbtrace_id": "********"
      }
    }

Once again, this is the ID that is returned to me from the endpoint. Even running these queries in the Graph API Explorer, where that ID is clickable and should query that ID, I get the error above.

Why would me/accounts return an invalid Instagram Business ID? Is there any way to regenerate it or fix it somehow?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *