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

Updated on June 27, 2024 by Editorial Team
Table Of Content

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.

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. 

Facebook app id secret 1 3 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret 2 2 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret 3 2 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret 4 2 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 5 2 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 6 2 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m 7 1 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 8 1 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 9 1 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m 10 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 11 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m 12 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m 13 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 14 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m 15 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 16 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 17 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m 18 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

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. 

Facebook app id secret 1 4 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret 2 3 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret 3 3 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 4 1 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m 5 3 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m i 1 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m i 2 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m i 3 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m i 4 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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

Facebook app id secret m i 5 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

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.

Facebook app id secret m i 6 how to get a facebook access token for wordpress? (easy method) from the plus addons for elementor

The access token generated here is a temporary one (will expire in about 2 hours) to extend the access token, follow steps 17-20 mentioned in the Facebook access token page document.

OR
Get Free 25+ Secrets to Make Elementor Website Faster [Guaranteed Results]



    Subscribe to our YouTube Channel for Elementor Tutorials
    New Video Every Week!
    Automatically Convert Figma Designs to 100% Editable Elementor Website
    X