How To Generate Token of Meta
Create App WhatsApp setup live mode Instagram and facebook setup.
.document-description-section .documents-tab-wrapper ul{ display: inline-flex; gap: 10px; margin-bottom: 0; background: #EDEDED; padding: 8px 10px; border-radius: 8px; } .document-description-section .documents-tab-wrapper ul li .btn{ background: transparent; color: var(--black); box-shadow: none !important; padding: 12px 15px; } .document-description-section .documents-tab-wrapper ul li.active .btn{ background-color: var(--theme-color); } .document-description-section .documents-tab-wrapper .tab-row::-webkit-scrollbar{ width: 100%; height: 4px; background: #E1E1E1; border-radius: 20px; } .document-description-section .documents-tab-wrapper .tab-row::-webkit-scrollbar-thumb{ background: var(--theme-color); } .document-description-section .documents-tab-wrapper .tab-row{ white-space: nowrap; overflow: auto; padding-bottom: 15px; margin-bottom: 15px; } .document-description-section .documents-tab-wrapper ul li { list-style: none; margin-bottom: 0; }
- Go to https://developer.facebook.com/apps and click on the
Create App button.
- Add the App Name and Contact Email, then click on the Next
button.
- Select the Other option and click on the Next button.
- On the Select an App Type page, select the Business option and click
on the Next button.
- Enter the App Name and Email, then click on the Create App
button given below.
- Click on the Set Up App button.
- Once you set up the app, you will see a section for WhatsApp Configuration
in the sidebar. Here, you will see three options. Click on the Quickstart option, select the Business Portfolio from the dropdown, and then click on the Continue button.
- Once you do that, click on the Start Using the API button.
- Once you click on this button, you will be redirected to the API Setup
page. Here, you will see a button for generating an Access Token. Click on that button, and your new access token will be generated. Once your token is generated, copy it and store it in your web application’s settings.
- After this, you will need to configure webhooks, so click on the Configure
Webhooks button given over there.
- Once you click on that button, you will be navigated to a page. On that page, you
have to copy the WhatsApp Chat Webhook URL from your web application and paste it into the Callback URL section of the configuration page. Below that, there is a field for Verify Token. Enter 12345678 and click on the Verify and Save button.
- After clicking on that button, you will be navigated to a Subscription
section, where you have to subscribe to Messages.
- After completing this process, you will see a button named App Mode at the
top. Enabling that button is mandatory to use the WhatsApp API, so do not forget to enable it. You can also generate a Permanent Access Token if you need long-term access to the WhatsApp API.
- When you try to enable this button, you will see a popup. Click on the **Basic
Settings** button over there.
- On the Basic Settings page, you have to add the necessary details like
**Display Name, App Domains, Contact Email, Privacy Policy URL, Terms of Service URL, and App Icon. Once you add these details, click on the Save Changes** button.
- After completing this process, you will see that the Live Mode is
displayed at the top.
- After setting up the WhatsApp API, you can also set up Messenger
and Instagram from the Add Products page given in the sidebar.
- After you click on the Set Up App button, click on the Messenger
button given in the sidebar. Click on the Messenger API Settings button and add the Callback URL copied from the Facebook Chat Settings or Instagram Chat Settings section of your web application, along with the Verify Token number 12345678. Finally, click on the **Verify and Save** button.
- You will also see the Generate Access Token section. Over there, click on
the Connect button.
- After clicking on the Connect button, you will be redirected to a new
page, where you have to click on the Add Subscriptions button.
- After clicking on that button, you will see a popup where you have to select the
particular Page Subscriptions given. Once you check them, click on the Confirm button.
- After that, go to the Instagram Settings and click on the **Add or
Remove** button given over there.
- Once you click on that button, a Page List of Facebook will be displayed
in front of you. Select the page and click on the Continue button.
- Once you click on the Continue button, a Page List of Instagram
will be displayed in front of you. Select the page and click on the Continue button.
- Once you click on this button, you will be directed to a page where you have to
click on the Generate Token button.
- After you click on that button, a popup will be displayed, where you can see your
Access Token. Copy your access token from there and paste it into the Facebook/Instagram Chat Settings of your web application.
- You will also see a section for Callback URL and Verify Token.
Paste the Callback URL from the Facebook Chat Settings or **Instagram Chat Settings section of your web application and enter the Verify Token number 12345678**. Finally, save the settings.
Your Facebook app is now fully configured for **WhatsApp, Messenger, and Instagram** integrations.