-1

我正在开发一个服务器应用程序,它应该能够对用户提要中某些帖子的点赞数量做出反应。

我需要从用户墙上发帖。

我正在使用Facebook库版本 6.4.2

我使用以下代码来获取帖子:

     var apiKey = ConfigurationManager.AppSettings["apiKey"];
     var secret = ConfigurationManager.AppSettings["secret"];
     var client = PostHandler.CreateFacebookClient(apiKey, secret);
     var get = client.Get(string.Format("/{0}/feed", pageId));

和/或(都返回相同的信息)

     var token =ConfigurationManager.AppSettings["token"];
     var get = client.Get(string.Format("/{0}/feed?access_token={1}", pageId, token));

问题是使用相同的权限集,从上面的请求返回的 json 与从Graph API Explorer返回的 json 返回的 json 不同 GET 100000481752436/feed

在我看来,从我的请求返回的 json 缺少一些帖子,而来自 Geaph API 的 json 都包含来自我的提要的帖子。

你能否请教,我会错过什么?

4

1 回答 1

0

如果您在提要中遗漏了一些帖子,很可能您必须再次检查权限设置。

根据您缺少的帖子类型,您可能需要添加、user_statususer_activities或权限。请确保您为特定任务使用正确的权限集。user_friendsuser_checkinsuser_games_activity

如果您指定您缺少的帖子的类型,您可能会得到更多有用的答案。

于 2013-11-14T11:10:58.437 回答