Facebook API:我可以从墙上阅读帖子而不登录吗? [英] Facebook API: Can I simply read posts from wall without loging in?

查看:238
本文介绍了Facebook API:我可以从墙上阅读帖子而不登录吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Facebook的墙壁上获取给定类型的公开帖子,我无法找出最简单的方法。我可以使用Facebook API,而不需要登录用户?谢谢。

I need to fetch public posts of given type from a Facebook wall and I can't figure out the easiest way. Can I use the Facebook API for this without the need to login the user? Thanks.

推荐答案


  • 您可以在 Facebok的。要获取任何用户的资料,您必须需要访问令牌。公开资讯提供任何有效的存取令牌,可以使用应用程式令牌。

    • You can fetch public post without login in Facebok. For get feeds of any user, you must need access token. Public feeds take any valid access token, application tokens can be used.

      将您的应用程式设定在Facebook中,并提供应用程式ID和API密钥。获取您想要的公共页面Feed的配置文件ID,这就是您需要的。

      Set your app up in Facebook and it will give you an app id and an API key. Get the profile id for the public page feed you want, and that's all you need.

      只需替换 PROFILE ID或NAME APPID SECRETKEY 值在下面的URL,你会得到你想要的结果在 JSON Facebook

      Just replace PROFILE ID OR NAME and APPID and SECRETKEY values in below URL and you would get your desired result in JSON from Facebook

      https://graph.facebook.com/PROFILE ID OR NAME/feed?access_token=APPID|SECRETKEY
      


    • 这篇关于Facebook API:我可以从墙上阅读帖子而不登录吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆