Facebook API 的范围
我正在尝试随时随地学习和创建 Facebook API。但是,我在开发者页面上没有找到任何详细指定 Facebook API 范围的页面。我了解可以使用 Graph API 访问公共信息。但同时也明白进一步的访问是可能的,但不确定有多少。
是否可以访问授权应用程序的用户的“编辑新闻提要选项”?
I am trying to learn and create a Facebook API on the go. However, I haven't found any page on the developer pages that specifies the scope of the Facebook API in great detail. I understand public information can be accessed using Graph API. But at the same time understand that further access is possible, not sure how much though.
Is there anyway to access the 'Edit news feed options' of a user that authorizes an application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太明白你所说的“范围”是什么意思,但是 Graph API 只不过是一系列 URL,用于通过查询联系 facebook 服务器并以 JSON 对象的形式获取答案。
您可以通过查看此处的 API 参考来开始学习:
http://developers.facebook.com/docs/reference/api/
有适用于您能想到的每种语言的非官方 API,例如 java:http://code.google .com/p/facebook-java-api/,c#: http://facebooksdk.codeplex.com/ 等。
要阅读新闻源,您可以通过以下方式访问: :
https://graph.facebook.com/me/home?access_token=TOKEN(其中令牌是访问令牌)
Fb 将使用类似于下面粘贴的 JSON 对象进行响应。
这样,您就可以使用人员或消息的 ID 来执行新查询,如 FB API 页面中所述:
FB 上的几乎所有信息都可以通过 Graph API 访问,前提是用户向应用程序授权了正确的权限:
http://developers.facebook.com/docs/authentication/permissions/
I don't really understand what you mean by "scope", but the Graph API is not more than a series of URLs to contact the facebook servers with queries and obtain answers in form of JSON objects.
You can start learning by looking at the reference for the API here:
http://developers.facebook.com/docs/reference/api/
There are unofficial APIs for every language you can imagine, for example java: http://code.google.com/p/facebook-java-api/ , c#: http://facebooksdk.codeplex.com/ , etc.
To read the news feed, you can access it by:
https://graph.facebook.com/me/home?access_token=TOKEN (where TOKEN is the access token)
Fb will respond with a JSON object similar to the one pasted below.
Having that, you can use the ID for the person or the message to perform new queries, as explained in the FB API page:
Almost every information on FB is accessible through the Graph API, provided the user authorized the app with the rigth permissions:
http://developers.facebook.com/docs/authentication/permissions/