Facebook页面访问令牌可以用于发布内容? [英] Facebook Page Access Token can be used to post stuff?

查看:119
本文介绍了Facebook页面访问令牌可以用于发布内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://www.devils上阅读了关于Facebook访问令牌的一些介绍-heaven.com/facebook-access-tokens/



我想问的是,Facebook的页面访问令牌是否可以用作永久令牌如果我只想在墙上发贴一些用户访问令牌?

解决方案

首先不要跟随第三个Facebook整合的一致文档。他们有官方文档遵循。有关访问令牌,请参阅此处


我想问的是,如果我只想在墙上发布一些东西,如用户访问令牌,Facebook的页面访问令牌是否可以被用作永久性令牌?


它实际上是一个模糊的问题。这取决于你想做什么样的帖子。例如:


  1. 如果你想在用户的墙上发布 - 页面访问令牌没有什么可以做的>


  2. 如果您要发布用户的组/事件等墙,再次访问页面访问令与此无关。


  3. 如果您想要在页面上发布,那么是的,您必须使用页面访问令牌才能代表页面本身发布。


页面访问令牌用于Graph API调用以管理Facebook页面。要生成页面访问令牌,页面的管理员必须授予名为 manage_pages 的扩展权限。获得此权限后,您可以使用以下Graph API请求检索页面访问令牌:

  GET / {user- id} / accounts 

您还可以扩展永远不会过期的页面访问令牌。请参阅这里如何做到这一点!


I have read some introduction about Facebook's access token on http://www.devils-heaven.com/facebook-access-tokens/

What I want to ask is that can the page access token of Facebook be used as a permanent token if I just want to post something on the wall like user access token?

解决方案

First of all don't ever follow the third-party documentation for the facebook integration. They have the official documentation pls follow that. For access tokens read here.

What I want to ask is that can the page access token of Facebook be used as a permanent token if I just want to post something on the wall like user access token?

Its actually a vague question. It depends on what kind of posting you want to do. For eg:

  1. If you want to post on a user's wall- there's nothing that a page access token can do

  2. If you want to post a user's group/event etc. wall, again page access token has nothing to do with it.

  3. If you want to post on a page, then yes you have to use the page access token in order to post on behalf of page itself.

Page access tokens are used in Graph API calls to manage Facebook Pages. To generate a page access token, an admin of the page must grant an extended permission called manage_pages. Once this permission has been granted, you can retrieve the page access token using the following Graph API request:

GET /{user-id}/accounts

You can also extend a page access token that will never expire. See here how to do that!

这篇关于Facebook页面访问令牌可以用于发布内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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