The Meta integration allows you to import all data from engagement with your article-related posts from your Facebook pages and Instagram accounts into your Marfeel account. This includes numbers of posts, comments, shares, likes, and followers. All data is available in the Explore module and Compass playbook.
Set up the Meta Integration
- Go to the Organization icon in sidebar, and select
Integrations
.
- Click on
Connect
in the Meta integration box. You will see the following prompt:
- Add a valid
App Id
,App secret
andUser token
. There are instructions in the next section on how to obtain them. Confirm, and you’ll be shown a dropdown with all pages it found access to. Select the ones you want to connect and confirm.
- Integration setup is complete.
If you want Meta integration to be able to sync all data from your Instagram accounts, you need to make sure they are connected to the Facebook pages you add in the integration. You can connect them by following the instructions provided in Instagram's documentation.
Obtaining the Facebook Credentials
- Important: you must use a Facebook account that is admin to the page you want to show in the card.
- Go to Meta for developers and click on My Apps and then on Create App.
- Fill in the form selecting app type: Business. Add any name for it. You’ll be prompted for a password.
- Go into your app’s
Settings
>Basic
- Add your site’s
Privacy Policy URL
, setCategory
toBusiness and Pages
, and save your changes. - Get
App ID
andApp Secret
- Add your site’s
- Go to
Tools
>Graph API explorer
- Select your app, add permissions:
-
pages_read_engagement
from group ‘Events Groups Pages’ -
pages_show_list
from group ‘Events Groups Pages’ -
pages_read_user_content
from group ‘Events Groups Pages’ -
read_insights
from group ‘Other’
-
-
instagram_basic
-
instagram_manage_insights
and click on Generate Access Token
. You’ll be prompted for permission, and you will need to select which page(s) you want to grant this access to.
- You will need to confirm permissions, keep both selected, and confirm:
- Copy the generated access token. Bear in mind that it is only valid for 5 minutes!
Troubleshooting
Sometimes the integration may experience problems fetching the data related from the pages you are syncing. In these cases, you may notice that some posts are missing, not being shown in Editorial Details or in Explore. You can find more information in the Logs
tab inside the integration.
Common issues are listed below:
FacebookGraphException: Received Facebook error response of type null: Please reduce the amount of data you’re asking for, then retry your request
This error impacts certain pages, normally large ones, and it comes from an unsolved Facebook bug. Please contact Marfeel support.
FacebookOAuthException: Received Facebook error response of type OAuthException: (#10) This endpoint requires the ‘pages_read_user_content’ permission or the ‘Page Public Content Access’ feature.
This error comes from a wrong token creation. Please regenerate the token following the instructions above and try deleting and creating the integration from scratch.
FacebookGraphException: Received Facebook error response of type null: An unknown error occurred
Please contact Marfeel support.