![](/img/trans.png)
[英]Instagram API: Retrieve IDs/names of friends who have liked the user's posted Instagram images
[英]Who is 'user' in Instagram Stories API
我正在編寫一個使用Instagram Graph API for Stories的網絡應用程序。 這是我的准備。
ME
Facebook頁面的FB
IG
,我將其轉換為企業帳戶 ,然后鏈接到Facebook頁面FB
。 然后,我按照有關如何使用Instagram Graph API的說明進行操作 。
現在,下一步是調用故事邊緣以在Instagram帳戶IG
提取故事。 根據文檔,
要獲取Instagram商業帳戶的所有故事,請向
/user/stories
邊緣發送GET請求; 例如,
GET graph.facebook.com /17841405822304914/stories
問題: /user/stories
邊緣的user
是誰?
我自然地以為這是Facebook頁面FB
管理員ID ME
,因為該頁面已鏈接到我的目標IG帳戶IG
。 但是,當我嘗試調用/user/stories
edge時,出現了一個錯誤。
{
"error":{
"message":"(#100) Tried accessing nonexisting field (stories) on node type (User)",
"type":"OAuthException",
"code":100,
"fbtrace_id":"FaeAydt7\/rd"
}
}
您首先獲取me/accounts
->提交
您應該看到自己的帳戶,選擇其中一個,然后單擊帳戶的id
然后添加instagram_business_account
作為選定字段->提交
您應該看到返回了instagram帳戶的ID,然后點擊它
GET /{instagra_business_account_id}/stories
->提交
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.