skip to Main Content

When I call the api:

 graph.facebook.com/userid?fields=business_discovery.username(name){followers_count,media_count}

in Graph API explore, I got an invalid parameter error:

(#100) Tried accessing nonexisting field (business_discovery) on node type (User)

Could anyone please explain to me what I miss in the API url?

Thanks

enter image description here

2

Answers


  1. This only works for Instagram Business Accounts, but you seem to be using it with a normal user id.

    As https://developers.facebook.com/docs/instagram-api/reference/user/business_discovery says,

    Instagram Platform API account IDs will not work with the new Instagram Graph API. Please use the Page node to determine the correct Instagram Business Account ID associated with the Facebook page.

    You can not use this for other types of Instagram accounts, only for business accounts.

    Login or Signup to reply.
  2. In my case the problem was that the instagram account was not connected to the page when the access-token was issue i.e. I added the instagram account after connecting the app.

    So what worked for me was to remove the app, make sure that the instagram account is connected to the page the connect the app. Now the access token works.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search