---
title: "How to Get a Facebook Access Token for WordPress? (Easy Method)"
url: https://theplusaddons.com/docs/get-a-facebook-access-token-for-wordpress/
date: 2024-06-25
modified: 2026-04-09
author: "Aditya Sharma"
description: "Generate Access Token for Page To generate an access token for a Facebook page follow the process -  1. You have to log in to your Facebook account and then..."
image: https://theplusaddons.com/wp-content/uploads/2024/06/How-to-Add-Animated-Headings-In-Elementor-1-2-1024x554.jpg
word_count: 832
---

# How to Get a Facebook Access Token for WordPress? (Easy Method)

## Key Takeaways

- Facebook for Developers requires users to log in to generate an access token.
- Users must add five specific permissions, including pages_read_user_content and business_management, to generate a page access token.
- The generated access token is temporary and expires in about 2 hours unless extended.
- To extend the access token for 2 months, users must use the Access Token Debugger tool.

## Generate Access Token for Page

To generate an access token for a Facebook page follow the process - 

1. You have to log in to your Facebook account and then go to [Facebook for Developers](https://developers.facebook.com/).

2. If you don’t have a developer account, click the **Get Started** button at the top. Skip to step 4 if you have a developer account. 

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-1-3.png)

3. Then you have to register for a developer account, and follow the steps to create your account.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-2-2.png)

4. Once done, you’ll get to the Apps page, click on the **Create App** button. 

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-3-2.png)

5. On the next page, select the business profile you want to link with the app and click **Next**. 

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-4-2.png)

6. On the next page select **Other** and click **Next**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-5-2.png)

7. On the next screen, you have to select your app type, select **Business** and click **Next**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-6-2.png)

8. Then add an app name, email id and optionally connect your business account. Once done click on the **Create App** button, it will ask for your password to authenticate.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-7-1.png)

9. On the next page, from the top menu go to **Tools** > **Graph API Explorer**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-8-1.png)

10. On the next page, select your app from the **Meta App** dropdown.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-9-1.png)

11. Then from the **User or Page** dropdown select **Get Page Access Token**. A popup will open, continue with your Facebook account, then select your Facebook page and follow the steps to complete the process. Now you’ll see two permissions added in the **Permissions** tab.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-10.gif)

12. Then add “pages_read_user_content” permission in the **Add a Permission** field.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-11.gif)

13. Similarly add the following permissions - 

- pages_manage_metadata

- business_management

Now you should have five permissions in the **Permissions** tab. All the permissions in green color are not included yet.

14. To include them click on the **Generate Access Token** button, a popup will open, continue with your Facebook account, then select your associated business profile and Facebook page and follow the steps to complete the process. Now you’ll see all permissions in black color.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-12.gif)

15. Then from the **User or Page** dropdown select your Facebook page and then click on the **Submit** button. Now you’ll see your Facebook page name and ID.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-13.gif)

16. Now copy and save the page ID in a notepad.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-14.png)

17. Now the generated token key is a temporary one (will expire in about 2 hours from generation), to extend it for 2 months, copy the access token and from the top menu go to **Tool** > **Access token debugger**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-15.png)

18. On the next page paste the access token in the text field under the **Access Token** tab and click on the **Debug** button.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-16.png)

19. You’ll see details related to your access token, scroll down the page and click on the **Extend Access Token** button.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-17.png)

20. It will ask for your password to authenticate. Now you’ll see your extended access token, which will last for about 2 months. Copy and save the new access token in a notepad.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-18.png)

*Note: Once the access token expires you have to generate a new access token to keep the app working.*

## Generate Access Token for Individual Account

To generate an access token for an individual account follow the process - 

1. You have to log in to your Facebook account and then go to [Facebook for Developers](https://developers.facebook.com/).

2. If you don’t have a developer account, click the **Get Started** button at the top. Skip to step 4 if you have a developer account. 

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-1-4.png)

3. Then you have to register for a developer account, and follow the steps to create your account.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-2-3.png)

4. Once done, you’ll get to the Apps page, click on the **Create App** button. 

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-3-3.png)

5. On the next page, select the business profile you want to link with the app and click **Next**. 

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-4-1.png)

6. On the next page select **Other** and click **Next**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-5-3.png)

7. On the next screen, you have to select your app type, select **Consumer** and click **Next**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-i-1.png)

8. Then add an app name, email id and optionally connect your business account. Once done click on the **Create App** button, it will ask for your password to authenticate.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-i-2.png)

9. On the next page, from the top menu go to **Tools** > **Graph API Explorer**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-i-3.png)

10. On the next page, select your app from the **Meta App** dropdown.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-i-4.png)

11. Then in the **Permissions** tab add “user_likes” permission in the **Add a Permission** field.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-i-5.gif)

12. Similarly add the following permissions - 

- user_videos

- user_posts

- user_link

Now you should have five permissions (including default public_profile) in the **Permissions** tab. All the permissions in green color are not included yet.

13. To include them click on the **Generate Access Token** button, and a popup will open, continue with your Facebook account. Now you’ll see all permissions in black color and you have your access token.

![](https://theplusaddons.com/wp-content/uploads/2024/06/facebook-app-id-secret-m-i-6.gif)

The access token generated here is a temporary one (will expire in about 2 hours) to [extend the access token](https://theplusaddons.com/docs//get-a-facebook-access-token-for-wordpress/#exted-token), follow steps 17-20 mentioned in the Facebook access token page document.

***Suggested Reading***: *[How to Add Live Instagram Feed in Elementor? (Personal & Business)](https://theplusaddons.com/docs//add-live-instagram-feed-in-elementor/)*

## Frequently Asked Questions

**Q: What should I do if I can't log in to Facebook for Developers?**
A: If you can't log in to Facebook for Developers, ensure that you have a valid Facebook account. If you donu2019t have a developer account, you need to click the 'Get Started' button on the site to register. Without a developer account, you won't be able to create an app necessary for generating an access token.

**Q: How do I extend the expiration of my Facebook access token?**
A: To extend the expiration of your Facebook access token, first generate a temporary token that lasts about 2 hours. Then, navigate to Tools &gt; Access Token Debugger, paste your token, and click the Debug button. Scroll down and click on the 'Extend Access Token' button to get a token that lasts approximately 2 months. This is crucial for maintaining continuous access to your Facebook page without interruption.

**Q: Can I use the access token for The Plus Addons for Elementor?**
A: Yes, you can use the Facebook access token generated through this process with The Plus Addons for Elementor, especially if you plan to integrate features like social feeds or other Facebook-related functionalities. This allows you to leverage Facebook's capabilities directly within your Elementor-built WordPress site.

**Q: What permissions do I need to generate a Page access token?**
A: To generate a Page access token, you must include specific permissions such as 'pages_read_user_content', 'pages_manage_metadata', and 'business_management'. These permissions ensure that your app has the necessary access to manage and read content from your Facebook page. Not including them may lead to insufficient access for your app's functions.

**Q: What happens if I forget to save my generated access token?**
A: If you forget to save your generated access token, you will lose access to the functionalities that require it once it expires, which is typically within 2 hours. You will need to repeat the process of generating a new access token, which can be time-consuming if you are not prepared. Always make sure to copy and store the token securely after generation.

**Q: Are there any common mistakes when generating an individual account access token?**
A: A common mistake when generating an individual account access token is neglecting to add all necessary permissions. Ensure that you include permissions like 'user_likes', 'user_videos', and 'user_posts' in addition to the default 'public_profile'. Missing these can result in a token that does not grant the required access for your app's intended functions.
