How to use Facebook Graph API to read Instagram user

半世苍凉 提交于 2019-12-23 07:33:35

问题


I tried to use Graph API Explorer to read an Instagram user.

Visit https://developers.facebook.com/docs/graph-api/reference/instagram-user/

I ticked every permission to generate the access token. Also, I linked my Instagram account to Facebook account. However, response still showed as 'Unsupported get request'.

graph api explorer output

Anyone can help? Thanks.


回答1:


Facebook has just released a new version of their graph API (v2.10) that now contains a new Instagram API that has new permissions that should allow you to read an Instagram user.

  • instagram_basic

  • instagram_manage_comments (optional)

  • instagram_manage_insights (optional)

However, these permissions are currently limited to Instagram business users that also have a Facebook business account with an ad account linked to it.




回答2:


While the documentation does describe this feature, my guess is that they removed it when they revised the Instagram API and significantly limited the functionality back in June of 2016.




回答3:


if you try to get the username of user who post the comment you can get it when you retrieve comment via media api *see 'note' section in here : instagram user



来源:https://stackoverflow.com/questions/38929890/how-to-use-facebook-graph-api-to-read-instagram-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!