facebook php sdk页面令牌 [英] facebook php sdk page token
问题描述
我有一个应用程序"Tipsters Corner"和一个页面,也称为Tipsters Corner. 我想在该页面上发布.我设法使用从图形资源管理器获得的令牌来做到这一点. 但是我不理解所有令牌之间的区别. 我有一个下拉菜单,有以下选项: 图资源管理器 Tipsters Corner应用 我单击获取令牌.我得到一个令牌,根据在下拉菜单中选择的内容而不同. 我可以使用任何令牌将它们发布到我的Facebook应用程序中.它们之间有什么区别. 另外,如果我输入我/帐户,我会在那看到我的页面/页面和另一个访问令牌.那是什么? 那是用户的令牌吗?
I have an application "Tipsters Corner" and a page ,also called Tipsters Corner. I want to post on that page.I managed to do this using the token obtained from the graph explorer. But I do not understand the difference between all the tokens. I have a dropdown ,with the following options : Graph Explorer Tipsters Corner Application I click Get Token.I get a token,a different one depending on what I selected in the dropdown. I can post to my facebook application using any of the tokens.What is the difference between them. Also,if I enter me/accounts I see my page/pages and another access token over there.What is that ? Is that the token for the user?
推荐答案
The tokens that you retrieve from the Graph Explorer are short duration User Access Tokens which are generated different for different applications and different permissions.
导航到/me/accounts
端点时检索的访问令牌是您管理或与之关联的各个页面的>页面访问令牌" .这些访问令牌确实会过期,但是如果使用长期访问令牌从/me/accounts
端点检索到,则这些令牌不会过期(
The Access tokens that you retrieve when navigating to /me/accounts
end point are the Page Access tokens for various Pages you administer or are associated with. These access tokens do expire, but if retrieved from the /me/accounts
end point using long lived access token these do not expire (documented here) and can impersonate things done by application as the Page itself.
您可能还想提供有关访问令牌的文档阅读.
You may further like to give the documentation about access token a read.
这篇关于facebook php sdk页面令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!