如何获得喜欢和分享Facebook帖子?

时间:2016-01-15 19:08:53

标签: facebook facebook-graph-api meteor fb-graph

我有一个服务器端应用程序,其中使用facebook apps appKey和secret创建了access_token。

我使用的是facebook图形API的2.5版本,无法使用较旧的API版本。

我想定期获取帖子的统计信息。通过相同的Facebook应用程序创建的帖子,但Facebook用户登录。所以在我的数据库中,每个帖子都有userid_postid。

如果我使用应用ID和帖子ID查询,我会收到某些帖子的预期结果。

获取“{appKey} _ {PostId}?fields = shares

如果我使用用户ID和帖子ID查询“GET”{postingUserId} _ {postId}?fields = shares',我会收到此错误:

{
 "error": {
   "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
   "type": "GraphMethodException",
   "code": 100,
   "fbtrace_id": "AyT8LYQDlDd"
 }

}

cron定期运行查询以获取喜欢和分享的数量,并使用appId和secret获取其access_token。

如何查询帖子的信息?

0 个答案:

没有答案
相关问题