facebook php sdk page token

孤街浪徒 提交于 2019-12-25 00:18:52

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/16540231/facebook-php-sdk-page-token

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!