# Meta application control

## Control review for essenger

Advanced access to the `pages_messaging` permission requires passing the application review set up by Meta. We encourage you to follow the instructions and documentation provided by Meta to do this.

You must follow all the steps and fill in the details for each question before you can submit them for review. Once all the checkmarks representing the review requirements are blue, the "Submit for Review" button at the bottom of the page will become active, and you can submit the application for review.

Here is an example of an approved application review for our own bot on our Facebook page dydu. The items in <mark style="color:purple;">purple</mark> are the questions asked by Meta during the application review. The items in <mark style="color:blue;">`blue`</mark> are elements for which you need to provide your own information.

{% hint style="info" %}
**IMPORTANT** :  To pass the application review required by Meta, you will need to provide an access account (login + password) to Meta for:

* The dydu BMS (the Meta reviewer must be able to access the "Channels" and "Knowledge" menus),
* Your Meta application,
* Your Facebook page.

You will also need to provide sample knowledge that your chatbot responds to, allowing the Meta reviewer to ensure that the chatbot responds correctly.
{% endhint %}

### Step 1 : Data Processing Questions

You can add Dydu as a data processor. If you have other processors, we recommend indicating them as well.

Regarding the Dydu processor, here is the information:

<mark style="color:purple;">Name of the processor:</mark>

Dydu

<mark style="color:purple;">For what category of services will this processor handle personal data of users received from Meta?</mark>

IT solutions and services, including cloud storage and processing

<mark style="color:purple;">List all countries where the processor will handle personal data of users received from Meta:</mark>

France

### Step 2: Completing Meta App Settings

Ensure that your app has:

* An icon,
* A privacy policy URL,
* The app category set to: Business Messenger Bot,
* A professional email.

### Step 3: Completing the Meta App Verification

<mark style="color:purple;">Does your app use a Facebook authentication solution, such as Facebook Login, that the review team can use to log in and verify your app?</mark>

Select "Yes".

<mark style="color:purple;">Platform settings (Optional)</mark>

To add a platform:

1. Click on the "Add Platform" button.
2. You will be redirected to the Settings > General page.
3. Scroll to the bottom of this page.
4. Click on "Add Platform".
5. Select "Website".
6. Click "Next".
7. Add the URL of your Dydu BMS.

<mark style="color:purple;">How will your app use the</mark> <mark style="color:purple;"></mark><mark style="color:purple;">`pages_messaging`</mark> <mark style="color:purple;"></mark><mark style="color:purple;">permission for advanced access?</mark>

<mark style="color:purple;">Tell us why you are requesting</mark> <mark style="color:purple;"></mark><mark style="color:purple;">`pages_messaging`</mark>

* <mark style="color:purple;">Describe in detail how your app uses the requested permissions or features, what the added value is for the person using your app, and why all this is necessary for the functioning of your app.</mark>

Currently, we have set up a chatbot for Facebook Messenger using the Dydu administration console. This chatbot (created with Dydu) automatically responds when a user initiates a conversation on Facebook Messenger with our business page.

However, since our Facebook application is not approved, only administrators can chat on Messenger to trigger the chatbot. To allow anyone to initiate the chatbot response, it is necessary to obtain Facebook's approval.

<mark style="color:purple;">Testing and reproducing the proper functioning of your integration</mark>

{% hint style="info" %}
Before providing the test steps, select the page where your bot will be available and for which you are making this request.
{% endhint %}

Steps to provide as detailed testing instructions:

If you want to get the Messenger experience, follow these steps:

1. Go to facebook login page
2. Login with <mark style="color:blue;">`xxxxx@yyyyy.com`</mark> and password <mark style="color:blue;">`ABCdef123`</mark>&#x20;

> Remplacez ces valeurs par l'e-mail et le mot de passe du compte qui a accès en tant qu’administrateur à votre application Meta.&#x20;

3. Go to dydu facebook page or go directly to  <mark style="color:blue;">`https://www.messenger.com/t/114523178583223`</mark>  &#x20;

> Remplacez ces valeurs par le nom de votre page facebook et le lien direct vers le contact messenger de votre page facebook

4. Type in  <mark style="color:blue;">`Je veux une démo`</mark> or <mark style="color:blue;">`Qui est dydu`</mark> or <mark style="color:blue;">`Où sont hébergées les données`</mark>.&#x20;

> Remplacez ces valeurs par des connaissances de votre bot à tester

**If you want to get access to dydu IA console :**

1. Go to <mark style="color:blue;">`https://app1.sandbox.doyoudreamup.com/`</mark>

> Remplacez cette valeur par votre url d’accès au BMS dydu

2. Login with <mark style="color:blue;">`aaaaa@bbbb.com`</mark> and password <mark style="color:blue;">`IJKlmn456`</mark>&#x20;

> Remplacez ces valeurs par l'e-mail et le mot de passe du compte qui a accès à votre bot sur le BMS dydu.

3. On the left menu, click "Content" > "Knowledge".
4. Click on the "Test my bot" button.
5. Send the message  <mark style="color:blue;">`Je veux une démo`</mark> or <mark style="color:blue;">Qui est dydu</mark> or <mark style="color:blue;">`Où sont hébergées les données`</mark>.

> Remplacez ces valeurs par des connaissances de votre bot à tester

6. The bot responds with the correct answer.

**We already integrate dydu AI console with our Facebook application. You can check it on dydu IA console :**

1. Go to <mark style="color:blue;">`https://app1.sandbox.doyoudreamup.com/`</mark>

> Remplacez cette valeur par votre url d’accès au BMS dydu

2. Login with <mark style="color:blue;">`xxxxx@yyyyy.com`</mark> and password <mark style="color:blue;">`ABCdef123`</mark>
3. On the left menu, click "Channels".
4. Open the integration named  Meta integration.

> Remplacez cette valeur par le nom de votre intégration Meta  sur le menu canaux

5. Click on the "Next" button (bottom right).
6. You will see that the application ID and the secret are already filled in. The page on which we want to put the application is also already connected.
7. If you want to check how we've connected our page with our Facebook app and dydu AI console, click on "Create" next to "Messenger".
8. Login to facebook with the login <mark style="color:blue;">`xxxxx@yyyyy.com`</mark> and password <mark style="color:blue;">`ABCdef123`</mark> .

> Remplacez ces valeurs par l'e-mail et le mot de passe d’un compte qui gère votre page facebook qui contient votre application Meta.

9. Click on "Continue as" - we've already selected the page we manage and we want to connect to dydu AI console you can check this by clicking on "Modify parameters" instead of "Continue as” (please do not change any configurations already made).
10. A modal will open, you'll have to fill the page ID and token (this is the page where you want to offer your bot).
11. As we already filled the page ID and token we want to connect to our bot, you can just close the "Page" modal.
12. Click on Finish.

<mark style="color:purple;">Upload a video capture showing how your application will use this permission or feature so that we can confirm its correct and compliant usage according to our policies. For more information, please refer to the video capture guide and development success video.</mark>

Example of a video made by Dydu during its application review request :&#x20;

{% hint style="info" %}
The Facebook review team does not accept generic videos; you must record your own video and submit it with your application review request. Facebook has published a guide for recording an appropriate video. For a successful application review, we recommend following their guidelines.
{% endhint %}

{% embed url="<https://youtu.be/PE2Tqzj6BMg>" %}
