How Facebook Integration works:
FB App Creation ( developer.facebook.com)
Configuring the FB app and make it live
Connect to Facebook Business Manager
FB App Creation ( developer.facebook.com)
Visit developers.facebook.com , Use Clients FB business account to login. Navigate to “My Apps” section
Use the “Create App” option on the top right Side of the page ( If no apps are created, then this option will be shown in centre also)
2. FB Create App (Steps):
2.1 Business Portfolio - Select Verified Meta Business account, which is managing your FB/IG pages and click Next
2.2 Uses cases - Select “Other” and click next
2.3 App Details and overview
App name : name of the app you are creating ( Ex. Leadgen_project name, genie_project name)
App Contact email: The email ID used here will be used for any communication from Facebook to contact app owners.
Business Portfolio: select the Business portfolio which manages the respective FB Pages (This is to make sure the app can connect to Pages you want to manage)
Fill in all the details and click on create app
You will be prompted to enter the password now and click on submit to create the app.
3. FB App Configuration
Once the FB app is created, you will now be redirected to the FB App homepage
Your App Name (Eg. Test_app_1), App ID, App Mode and App Type will be displayed on top
3.1 App ID , App Secret and Privacy Policy
Navigate to App Settings >> Basic
Make a note of App ID, App Secret (This will be required for ACRM/Genie Integration)
Privacy Policy : Developer has to provide their webpage link to their Privacy policy (eg. https://anarock.com/privacy-policy)
Click on Save changes, after adding all the required details
3.2 Navigate to Products >> Add Product
Select >> Facebook Login for Business >> Set up
3.3 Settings for Facebook Login for Business
Navigate to ‘Valid OAuth Redirect URIs’ in the settings
Enter the following details
Click on Save changes, after adding all the required details
(Note: Client OAuth Login and Web OAuth login must be enabled)
3.4 Navigate to Products >> Add Product
Select >> Webhooks >> Set up
3.5 Settings for Webhooks
Select ‘Page’ in drop down menu
Now ‘Subscribe to this object’
Edit Page Subscription: Enter the required details, click on ‘Verify and Save’
Callback URL
Anarock.com: https://digix.anarock.com/webhooks/fbleadgen
Anarock.tech: https://digix.anarock.tech/webhooks/fbleadgenVerify Token : abc
Now Subscribe to all the required webhooks, search for the following
leadgen
messages
Feed
(Note: Do not change version Eg. v20.0)
Note: Refer the snippet below on how to subscribe to all the required webhooks(leadgen, Messages, Feed).
Once this is done, now your FB app is ready, make sure the app mode is ‘live’ (Refer screenshot below)
FB One-Click Integration
https://www.facebook.com/v3.3/dialog/oauth?client_id=2099746020241886&redirect_uri=https://digix.anarock.com/api/v0/generate_access_token&state=2099746020241886_70758&scope=email,ads_management,leads_retrieval,pages_read_engagement,business_management,pages_manage_ads,instagram_basic,instagram_manage_comments,instagram_content_publish,instagram_manage_messages,pages_manage_metadata,pages_messaging,pages_messaging_subscriptions,ads_read,pages_show_list,pages_read_user_content,pages_manage_engagement
Update the following in the above link:
client_id with the app id (refer process above to get app_id)
state = app id_developer_id (
We will take whatever campaign id is entered in the channel facebook in mandate settings to create leads from Meta.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article