简体   繁体   English

使用graph API v2.4及更高版本获取Facebook新闻提要

[英]Get facebook news feed using graph api v2.4 and above

Ok I have read it in the doc facebook developer docs 好的,我已经在文档Facebook开发人员文档中阅读了它

It says to get news feed the url must append '/home' for which 'read_stream' scope is required and it also says 它说要获取新闻提要,URL必须附加“ / home”,其要求是“ read_stream”作用域,并且还说

The read_stream permission is only available for apps using Graph API version v2.3 or older. read_stream权限仅适用于使用Graph API v2.3或更早版本的应用。

And I also know the feeds for pages is available with facebook page plug-in. 而且我也知道页面的提要可通过Facebook页面插件获得。

Now my question is, is there still any possibility or hack to get the news feed using graph api. 现在我的问题是,是否仍然有可能或破解使用图谱API获得新闻提要。

For me the url should be: 对我来说,网址应为:

https://graph.facebook.com/{user-id}/home/feed?limit=n&accesstoken=xyz&fields=actions,comments,from,message

You can use the user_posts permission. 您可以使用user_posts权限。 Of course you don´t get the whole stream anymore, only posts of the user and posts from his friends on his wall. 当然,您不会再获得全部信息流了,只有用户的帖子和他的朋友的帖子贴在墙上。 There is no way to get the whole feed anymore, for privacy reasons. 出于隐私原因,无法再获取整个摘要。

More information: https://developers.facebook.com/docs/apps/changelog 更多信息: https : //developers.facebook.com/docs/apps/changelog

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

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