Created a test user on the Facebook developer panel. Created a page, and linked my Instagram user to this test user but I can't get the instagram_business_account_id
of the Instagram user.
Getting the page id
:
GET: https://graph.facebook.com/v10.0/<test_user_id>/accounts?access_token=<test_user_access_token>
Getting the instagram_business_account_id
GET: https://graph.facebook.com/v10.0/<test_user_page_id>?access_token=<test_user_access_token>&fields=instagram_business_account
Reponse:
javascript
Response: {
"id": "<fb_page_id>" // Facebook Page ID
}
instagram_business_account_id
did not come in the response.
Response example from graph api documentation
javascript
{
"instagram_business_account": {
"id": "17841405822304914" // Connected IG User ID
},
"id": "134895793791914" // Facebook Page ID
}
How do I get the instagram_business_account_id
of the Instagram user linked to this test user?
Details:
- I added all the permissions available to the test user but it didn't work either.
- the Instagram account linked to this test user is a business account.