Facebook Gallery and Feed Key Refresh

Every so often we have to update Facebook API User Access tokens on several sites. This is the procedure for that.

Featured image for Facebook Gallery and Feed Key Refresh

Every 6-8 weeks, we need to update these keys to keep them working. All of this will need to be done while logged into the OMG Facebook account. They will only work if the account is an Admin for the client so a lot of these aren't working currently, but we'll keep them updated anyway.

Image Galleries

Go here: https://smashballoon.com/custom-facebook-feed/docs/get-extended-facebook-user-access-token/

Also, while logged into OMG Facebook account, go here in another tab: https://developers.facebook.com/tools/explorer/

In the Explorer window:

  • select 'JQ Galleries New' under 'Facebook App'
  • select 'User Token'
  • the default permissions are perfect (should be 8 selected)
  • click 'Get Access Token'
  • copy the token

In the Smash Balloon window:

You will now need to paste this Token in the following places:

Facebook Feeds

Repeat the same process above except select 'OMG Feed' as the App for the token and then grab the ID and Token (https://developers.facebook.com/apps/1604617316464162/settings/basic/) and generate and copy a new Access Token in the SmaskBallon page.

Add the 'pages_read_engagement' permission, if it's not already

This will get pasted on line 21 of '/omgcp/user/addons/hop_social_suite/libraries/FacebookAPIWrapper.php' on the following sites (use cPanel):

Links Smash Ballon Page|https://smashballoon.com/custom-facebook-feed/docs/get-extended-facebook-user-access-token/&sa=D&ust=1575817798805000&usg=AOvVaw1061JK7LbiHAC8-1bsf0yu|Facebook API Explorer (for Access Tokens)|https://developers.facebook.com/tools/explorer/|Facebook Developers|https://developers.facebook.com/