Get a permanent facebook page access token

In this article, we will explore how to lớn get a short-lived user token, exchange with the long-lived user token, get a permanent page access token & make facebook GraphApi hotline.

You watching: Get a permanent facebook page access token


*

*

Create an account:

To make GraphApi Call you need an tài khoản. To bởi vì this you need khổng lồ be verified facebook user. Go lớn facebook for developers page và create an account.


*

*

*

You will be asked to lớn select the permissions associated with the generated token. Select at least manage_page permission.

Note: I selected manage_pages, pages_show_menu, publish_pages permissions.


Cliông chồng Get Access Token when finished.

Congrats! you have sầu a valid Short-Lived User Token. To check its info, cliông xã on the blue exclamation mark next khổng lồ it


You can see that the Token type is User & that it expires in about an hour và the token has manage_pages, pages_show_danh mục, publish_pages scopes.

See more: Thanh Xuân Như Một Tách Trà Chế Thơ, Thanh Xuân Như Một Tách Trà Có Nghĩa Là Gì

Exchange with a Long-Lived Token

You can see that the Token type is User and that it never expires và the token has manage_pages, pages_show_danh mục, publish_pages scopes.

Get Permanent Page Access Token

Copy user long-live sầu access token và paste on graph API explorer.


You can see that the Token type is Page và that it never expires & the token has manage_pages, pages_show_danh sách, publish_pages scopes.

Finally, you can get a Permanent Page Token from the/me/accountsendpoint of the graph object.


Access Token:Short-Term Tokens & Long-Term Tokens

User access tokens come in two forms: short-lived tokens & long-lived tokens.

See more: Tải Giao Dịch Bitcoin Tabtrader Cho Máy Tính Pc Windows, Tabtrader Cho Máy Tính

Short-Lived Tokens: usually have sầu a lifetime of about 1–2 hoursLong-Lived Tokens: usually have a lifetime of about 60 days but can also be permanent

Note: Access tokens generated via web login are short-lived tokens, but you can convert them to lớn long-lived tokens by making a server-side API Hotline along with your ứng dụng secret.