通过Facebook Instagram API business_discovery

时间:2018-08-07 08:55:50

标签: facebook-graph-api instagram instagram-api

我想使用新的Facebook Instagram API更新特定instagram帖子的like_count和comments_count。我们将帖子ID和其他数据存储在我们的数据库中,只需要该特定帖子的数据即可。此时,我可以通过以下API调用获取喜欢和评论数:

https://graph.facebook.com/v2.12/xxxx?fields=business_discovery.username(jacqehoward){id,name,username,website,profile_picture_url,biography,followers_count,media_count,media.after(QVFIUlZA5aTR5NTE4Y24tNW90VGZAPTVBtb0NpOEFPTlNLeklmVTEtUDZAfVnE0YnBhUVNOQ3BDaktzNHJBTENhTmVYLUV2SGJPZAVAxZA09hQ2NhUGdnUGFjMTNn){id,caption,comments_count,like_count,media_type,media_url,owner,timestamp}}

过一会儿,新的帖子被添加到该帐户中,您将需要遍历所有的帖子才能再次找到它们,并能够获得点赞和评论计数。在旧的Instagram API中,您可以按媒体获得喜欢和评论数。在新的Instagram API中,您只能获得覆盖范围或“参与度”,这是点赞和评论的组合,而我想单独使用它们。 https://developers.facebook.com/docs/instagram-api/insights

有谁知道如何在洞察端点呼叫中添加喜欢计数和评论计数?

第二个问题:如果拥有私人instagram帐户的instagram用户与您的应用程序连接,您如何获取Facebook instagram ID,以便您可以在其时间轴上收集帖子?

0 个答案:

没有答案