I'm writing an web app which uses Instagram Graph API for Stories . This is my preparation.
ME
of a Facebook page FB
IG
, which I convert to a business account and then link to the Facebook page FB
. Then I follow through the instructions on how to use Instagram Graph API.
APP
, as explained here . ME
, and my app returns an access token . Now, the next step is to invoke stories edge to extract the stories in an Instagram account IG
. According to the documentation,
To get all of an Instagram Business Account's stories, send a GET request to the
/user/stories
edge; for example,
GET graph.facebook.com /17841405822304914/stories
Question: Who is the user
in the /user/stories
edge?
I naturally assume that it's my admin ID ME
for the Facebook page FB
because this page is linked to my target IG account IG
. But when I tried to invoke /user/stories
edge, I got an error.
{
"error":{
"message":"(#100) Tried accessing nonexisting field (stories) on node type (User)",
"type":"OAuthException",
"code":100,
"fbtrace_id":"FaeAydt7\/rd"
}
}
You first GET me/accounts
-> Submit
you should see your accounts, pick the one and click on account'd id
then add instagram_business_account
as selected field -> Submit
you should see instagram account's id returned, click on it
GET /{instagra_business_account_id}/stories
-> Submit
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.