Hello, today we are going to learn how we can obtain an access token for the Facebook API that will also allow us to post on a page we have created.

First, we need to create a Facebook APP where we will assign the access token. To create an APP, you can follow this tutorial: https://devcodelight.com/?p=6087 (remember that the type of APP should be “Other”).
Now, we need to obtain the access token. To do this, click on Tools > Graph API Explorer.

Select the APP we have created:

Now, let’s get the page access token (if we want to access the page to post, for example).

We choose which pages to access:

Now, we accept access to the page, and the access token will be ready.
Refresh the page, and you will see this:

Now, we need to choose between User or Page, and we have to add POST permissions to post messages on the page. To do this, click on Add a permission > expand, and you will see:

We need to go to Events Groups Pages
And activate: pages_manage_engagement

Now, we need to choose between User or Page, and we have to add POST permissions to post messages on the page. To do this, click on Add a permission > expand, and you will see:

We need to go to Events Groups Pages
And activate: pages_manage_engagement

Activate pages_manage_posts

Activate pages_manage_metadata

Activate pages_manage_instant_articles

It should look like this:

Now, we need to choose between User or Page, and we have to add POST permissions to post messages on the page. To do this, click on Add a permission > expand, and you will see:

We need to go to Events Groups Pages
And activate: pages_manage_engagement

Activate pages_manage_posts

Activate pages_manage_metadata

Activate pages_manage_instant_articles

It should look like this:

In addition to all of those, we must add publish_to_groups
Now, select the page from the list:

In my case, I want to use QuieroLibros.com
Finally, click on Generate Access Token
Now, select the page from the list:

In my case, I want to use QuieroLibros.com
Finally, click on Generate Access Token

It will ask you to connect with your account again:
Now, select the page from the list:

In my case, I want to use QuieroLibros.com
Finally, click on Generate Access Token

It will ask you to connect with your account again:

The page you previously chose will be marked again, and you can continue. Finally, click on Save.
Now, it will look like this:

With all the permissions assigned to the access token.
Finally, copy the Access Token and save it.
