简体   繁体   中英

facebook php sdk page token

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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