How to get Likes of Instagram photo posts in Facebook Graph API?

核能气质少年 提交于 2019-12-10 13:36:58

问题


I am developing an app that processes <used_id>/posts connection to read the posts a user have made and count the likes and comments that have been received.

Yesterday I noticed that Instagram photo posts do not appear in posts connection. After a little search I found this Posts from Instagram not showing up on Facebook Open Graph API after which I was able to see Instagram photos in Feed connection if permission user_actions:instapp was added (or friends_actions:instapp for friend posts).

But two problems remain:

1) The posts still do not appear in Posts connection, which is more convenient for usage in my case because I am not interested in Posts of other users which may appear in Feed.

2) Even if I use Feed connection the posts do not have Likes field filled, does not matter whether I specify it directly or not. I assume that the same goes with Comments. Therefore in my case Feed is also useless because I need Likes data.

The only solution that works is by using <user_id>/instapp:take - there I get all photos also with Likes. So I might use it, but the trouble is - then I need to do double API call, because Instagram posts are not the only in which I am interested in (I still need to call <user_id>/posts).

I have submitted this bug report: http://developers.facebook.com/bugs/131821543664928

Perhaps someone has an idea for a better solution than calling instapp:take?

Thanks!

来源:https://stackoverflow.com/questions/15334601/how-to-get-likes-of-instagram-photo-posts-in-facebook-graph-api

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