简体   繁体   English

RestFB:如何使用restfb获取所有facebook用户的帖子

[英]RestFB : How to get all of a facebook users posts using restfb

When i use the following query https://graph.facebook.com/v2.8/1347629308665541/feed?limit=100&access_token=146055952628403%7CZLntKASz1sjS1y8ZLKVFnfFRE400&format=json 当我使用以下查询https://graph.facebook.com/v2.8/1347629308665541/feed?limit=100&access_token=146055952628403%7CZLntKASz1sjS1y8ZLKVFnfFRE400&format=json

I get 0 posts from graph api, I tried using the User Access Token, the Page Access Token as well as the Application token, but I don't get any posts. 我从graph api得到0个帖子,我尝试使用User Access Token,Page Access Token以及Application Token,但没有任何帖子。

1347629308665541 is a facebook users UserId which i have fetched by getting the users who like a particular facebook POST. 1347629308665541是一个Facebook用户UserId,我通过获取喜欢特定Facebook POST的用户来获取。

Is it possible to get a feed of all the posts of the user who has liked my facebook post? 是否可以获取喜欢我的Facebook帖子的用户的所有帖子的提要? I have a user access token or page access token available if needed. 如果需要,我有一个用户访问令牌或页面访问令牌可用。

You can get access token with: 您可以通过以下方式获取访问令牌:

  1. Login to your facebook 登录到您的Facebook
  2. Go to your profile page 转到您的个人资料页面
  3. Right click to "View Page Source" 右键单击“查看页面源”
  4. Find text with key: "access_token" 查找关键字为“ access_token”的文本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM