Facebook account #
To get WhatsApp API credentials, first we need to have a Facebook developer account. to create it, go to Ofiicial Facebook developer website and click on Login button( In Top right corner). If you do not have a Twilio account, select Create account option. After creating account, again go to login.
After logged into your Facebook account, go to Facebook developers and click on Get Started
After logged-in, register as a Meta developer.
On next screen, confirm your E-mail address.
After confirmation of Email, please select the Role for your account, please select a role, that best describes you. ( Recommeded role is Developer, as we are about to create an APP for WhatsApp).
Please confirm registration after selecting the role.
Create App #
On next screen, all your Facebook Apps will be listed, please create a new app by click on Create App button.
On next screen, please select the functionality of your app, for WhatsApp, please select Other.
Select App type as Business on next screen.
On next screen, please add App details like App name, Email and Business portfolio.
It is the final step to create your Facebook App, click on Create App, and you will be redirected to the App dashboard. Please go to WhatsApp section, and select Setup.
Business portfolio #
On next page, continue to create a business portfolio.
Create an business account and add required details.
After the business portfolio is created, please confirm your Email address.
On next screen, please choose the newly created business portfolio and continue.
After clicking Continue, you will be redirected to the App dashboard, where you can find a test phone number along with the required API details like Phone ID and Business ID.(That are required for Gravity Notifications WhatsApp settings)
please refer below screenshot to find the details.
Get permanent token #
Along with Phone ID and Business ID, you will also need a permanent token for setting page. below are the steps to get a permanent token.
- Go to Business Settings.
- Select the business account your app is associated with.
- On left panel go to Users-> System Users.
- Click Add.
Name the system user, choose Admin as the user role, and click Create System User.
Click on Assign assets.
Select the App and give access as shown in screenshot below.
After save changes, click on Generate new token
Select your app
Select Never as expire option, as it will never expire and you will not need to update new token in Gravity notifications setting page.
Choose the permissions as described below.
After Generate token, your permanent token will be generated to use in Gravity Notifications WhatsApp API settings.
Note: Please save the token, once its visibile on screen, as it will not be displayed ever again.
You can get more details about creating App and Access token from the official page also.
Add WhatsApp settings to Gravity notifications #
Go to Gravity notifications setting page -> API Details -> WhatsApp
and add all gathered details here.
Thats it. You have successfully gained WhatsApp API details like Phone ID, Business ID and permanent access token to use on Gravity notifications plugin’s WhatsApp API settings.