简体   繁体   English

获取Facebook页面的所有帖子相关数据

[英]Getting all posts related data for a facebook page

For my web application - I need to fetch all the data for a particular facebook page. 对于我的Web应用程序-我需要获取特定Facebook页面的所有数据。 What kind of permissions do I need. 我需要什么样的权限。 Do I really need to create a canvas app for it? 我真的需要为此创建一个画布应用程序吗? I dont intend to do anything on FB - but use some of the data available to arrive at some conclusions in my web based application which will be hosted on a server outside of FB. 我不打算在FB上做任何事情-但会使用一些可用的数据来得出我的基于Web的应用程序中的某些结论,这些结论将托管在FB之外的服务器上。

Facebook's API documents should provide everything you need: https://developers.facebook.com/docs/graph-api/reference/v2.1/page Facebook的API文档应提供您所需的一切: https : //developers.facebook.com/docs/graph-api/reference/v2.1/page

According to the permissions section, you'll need either an App token or a User token. 根据权限部分,您将需要一个App令牌或一个User令牌。 Since you're talking server-to-server (I'm assuming this is server-to-server on account of the PHP tag), you're going to want to use an App token: https://developers.facebook.com/docs/facebook-login/access-tokens#apptokens 由于您正在谈论服务器到服务器(我假设这是基于PHP标记的服务器到服务器),因此您将要使用App令牌: https://developers.facebook。 com / docs / facebook-login / access-tokens#apptokens

You should be able to create a Facebook App from within your Facebook account, which will provide you with an App ID and App Secret. 您应该能够从您的Facebook帐户中创建一个Facebook App,这将为您提供App ID和App Secret。 You can use those to make calls directly to the API. 您可以使用它们直接调用API。

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

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