How to Create a Facebook Access Token

MashShare is working without an facebook access token well in most cases but if you are noticing that your share count stucks it's likely that your daily traffic has hitten the facebook rate limit or your website is running under a shared host and IP address which is already limited by facebook.

To prevent the rate limit you can use a personal facebook access token which is valid for 60 days. It allows your website to call the facebook API 200 times per hour.

To do so you need a facebook app first.
Read here first how to create a facebook app and its corresponding app id.

If you already did it you can continue here.

Login to facebook and go to

Look for the app entries. If you have more than one facebook app, use the one you created for the website you are using MashShare on

You can already use the shown default User Access Token but this one is valid only for a short time.
So we want to extend that user token to a long lasting token which is valid for 60 days. 

To do so click first on Debug and than on Extend Access Token.You will be prompted for your facebook password again and than you get a new long-lived access token with its expiration time

Copy this token and paste it into the Access Token input field under MashShare->settings->networks

You can verify if the access token is working by clicking on the button Verify Access Token

If everything is working you get the message: Token valid. Facebook Share Count for 398736734 
(The number will be different because it reflects the share count of the time point of this check)

Bear in mind that you need to recreate a new facebook access token after 2 month when the old one expires. MashShare will reminds you with an admin notice when it's time to renew.

Congratulations, you are done. Your website should be able to call the facebook API 200 times per hour now. 
That's enough for even huge sites with a lot of posts.

Still need help? Contact Us Contact Us