Create Facebook App

Modified on Fri, 9 Feb at 7:51 PM

You are required to have a verified business on Facebook.


1 - Access https://developers.facebook.com/ and create your account.


2 - 

3-


4-



5-



After you create the app go to Settings

You can make little changes to our Terms and Policy. Download our Terms and Privacy policy from the links below.


Terms of services

You will need to replace [Business Name][Subdomain], and [Business Email] with your own information.


Privacy Policyhttps://SUB_DOMAIN/legal/privacy-policy  

For example, if your subdomain is app.example.com, your Privacy Policy will be https://app.example.com/legal/privacy-policy 



Add the Website as a platform






Go to settings > Facebook Login > Settings and add https://YOUR_SUBDOMAIN/php/auth.php to the Valid OAuth Redirect URIs



Add Webhook to the list of products.





Subscribe to feed, inbox_labels, group_feed, name, picture,messages, messaging_postbacks, messaging_optins, message_deliveries, message_reads, messaging_echo,message_reactions,messaging_customer_information,messaging_referrals,messaging_handovers and standby.



Setup Messenger Channel

Add the Messenger product.



6 - Ask a request for permission

Navigate to App Review -> Permissions and Features



You will need to click  “Request Advanced Access” for the permission that is required for the Messenger channel.


Permissions Required: pages_messaging, pages_show_list, pages_manage_metadata, Business asset user profile access, pages_user_locale, pages_user_gender, pages_user_timezone


Facebook Comment Automationpages_manage_engagement, pages_read_engagement, pages_read_user_content.


Send Paid Messages (Sponsored Messages): ads_read, ads_management.

ads_read is permission is required if you want to get the list of Ad posts on the Facebook Comment tool.

For the ads_read and ads_management, you will need to add Marketing to the list of products.


pages_read_user_content

Tell us how you're using this permission or feature

We are required to include the pages_read_user_content because pages_manage_engagement depends on it.


We use pages_manage_engagement to let businesses automatically support customers who comment on their page posts. Also, our app needs this permission to let bots hide comments that page admins do not want to be visible on their posts. This feature will help businesses to provide faster support when people comment on their posts.


Pages_show_list

Tell us how you're using this permission or feature

Our app needs this permission to let a user list all the pages that he is an admin when he connects his Facebook page to our platform to create Messenger Bots.

With this permission, it will be easy for a person to choose the page that he wants to connect to our platform.


Also, we are required to include this permission because of pages_manage_metadata


Pages_manage_metadata

Tell us how you're using this permission or feature

We use pages_manage_metadata to let the platform subscribe to webhooks events like messages, messaging_postbacks, messaging_optins, message_deliveries, message_reads, messaging_referrals, and standby. Without this permission, a business can not automatically reply to customer questions.


Pages_user_locale

Tell us how you're using this permission or feature

We need this permission to let businesses create multilanguage chatbots.

Businesses will be able to show content based on the user language.


Pages_user_gender

Tell us how you're using this permission or feature

We need this permission to let businesses personalize conversations based on user gender.

For example: "Hi Mr" or "Hi Mrs".

Also, businesses may want to show content based on user gender. A shop could show men's products to men and women's products to women.


pages_manage_engagement

Tell us how you're using this permission or feature

We use pages_manage_engagement to let businesses automatically support customers who comment on their page posts. Also, our app needs this permission to let bots hide comments that page admins do not want to be visible on their posts. This feature will help businesses to provide faster support when people comment on their posts.


Pages_messaging

Tell us how you're using this permission or feature

We use this permission to let businesses create Messenger bots to automate customer support and sales on Facebook.


Please provide step-by-step instructions to walk us through how to test this integration.

1 -Go to the test page (https://m.me/YOUR_PAGE_ID) and Get Started

2 - Send a message "hello" or "I need help"


Business asset user profile access

Our app needs this permission to let chatbots get user information like name, first_name, last_name, profile_pic, locale, timezone, and gender.


Chatbots use the user data to personalize the conversation in order to provide the best user experience.


This permission is required according to this documentation https://developers.facebook.com/docs/messenger-platform/identity/user-profile/#availability


pages_read_engagement

Tell us how you're using this permission or feature

We are requesting pages_read_engagement because we want to let the bots automatically support users who comment on a page post. This feature will help customers ask questions (comment on posts), and they will get the response as a comment (public reply).


We will need this permission to get user information like name and PSID to personalize the response.


Pages_user_timezone

Tell us how you're using this permission or feature

We use this permission to let businesses send content based on hours of the day. This is very important to avoid sending messages at midnight.

Also, we let the business ask the user for a date & time, and we will need to know the user's timezone to convert that time to the business admin time.



Setup Instagram Channel

Add the Instagram product.



Permissions Required: instagram_manage_messages, instagram_basic

Instagram comment automation: instagram_manage_comments

Instagram Story Automation: instagram_manage_insights


instagram_manage_messages

We use this permission to allow businesses to automate their customer support and lead qualification on Instagram. Businesses will be able to create bots for Instagram that will automatically respond to questions from their customers.


How to test

1 - Visit https://www.instagram.com/….

2 - Send a message "hello"


instagram_basic

We are using this permission to get the username and ID of an Instagram Business account profile (IBAP) to allow our platform to connect a IBAP to a Messenger bot.


instagram_manage_comments


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article