Latest Blogs

News
Hi guys, Black Friday is just around the corner. There is no doubt that this will be the best time of the year to invest your money in premium items at the least price. Therefore, you can have a chance to enhance your website to a new level by u...
177 Hits
Articles
If you're planning to build a construction website for your companies or your clients, why not finding an ideal Joomla template to fit all your needs instead of spending a lot of money paying a professional for his job. Yes, I mean you can easily est...
510 Hits
News
Hi, Halloween is coming. Are you waiting for an amazing discount on this special event? Yes, definitely sure. TemPlaza would like to give you a special offer for the spookiest holiday with 30% OFF. This discount will be applied to some featured items...
769 Hits
News
Hi, I would like to inform you about the completion of an updated batch that includes up to 13 Joomla templates. They are completely compatible with Joomla 3.9.22, Astroid 2.4.5, and other supported components. We have also addressed a lot of well-kn...
755 Hits
News
Hello Guys, Obviously, it is crucial to keep a website up-to-date and equip it with new features and functionalities. Being aware of this important task, our products frequently come up with fixes and improvements so that you can often update your we...
664 Hits
How-to-Generate-Facebook-Access-Token

How to Generate Facebook Access Token

When you work with a plugin that requires Facebook API, especially showing your Facebook feed or Facebook Images on a website, Access Token is needed. In this article, we are going to give you detail instructions to get a Facebook Access Token never expiring.

Step 1: Log in Facebook for Developers using your current personal credentials. A Facebook Page or Business Account will not be allowed to register as developers.

Step 2: Create App ID
After logging in, create a Facebook App or if you have one available, use it.
To create a new Facebook App, you go to My Apps > Add New App. A popup appears for you to enter App Name and Contact Email. Then, select Create App ID and Submit.
Step 3: Copy App ID and App Secret.

Go to Settings > Basic and copy App ID and App Secret here.

Step 4: Generate the short-lived access token.

Navigate to Graph API Explorer and get a short-lived access token. You can follow sub-steps below:
+ Firstly, when you go to the Graph API Explorer page, select your App > Get Token > Get User Access Token
+ After that, a popup of a list comes out for you to choose the permission for the user access token. Eg: manage_pages, pages_show_list, publish_pages, public_profile
+ Generate the short-lived access token by clicking on Get Access Token button.

Step 5. Generate the long-lived access token.
Go to Access Token Tool page. In this page, you will be able to see the short-lived access token, app access token of all apps you have created under the current Facebook account.
For the User Token, you need to select "need to grant permissions" to see it.
Then, you click on Debug option for User Token for the current app you need to create the access token. You will go back to the Access Token Debugger page. Because the short-lived access token is valid in an hour, you need to extend this token by clicking on Extend Access Token button and get the long-lived access token.

 Step 6: To have a token that never expires:
+ Go back the Graph API Explorer and add the long-lived access token to Access Token field.
+ Change API endpoints to "/me/accounts" and select to Submit.

​Step 7: To check if the access token is never expiring.

That's the way you go. Don't hesitate to leave your comment below and share this article with your friend. Thanks for reading!

That's the way you go. Don't hesitate to leave your comment below and share this article with your friend. Thanks for reading!


How to Unlist a Post/Page only Viewable via a Priv...
Best Music Joomla Templates - Latest from the Mark...
 

By accepting you will be accessing a service provided by a third-party external to https://ns2.templaza.com/