META App Creation and Configuration
- Visit developers.facebook.com
- Click MyApps in the top right hand corner
- Click Create App
- App Name: Enter the name of your company (This will be visible to guests)
- App Contact email: Enter the desired contact email for updates about your App
- Click Next
- Use Cases
- Select the option for “Connect With Customers through WhatsApp”
- Click Next
- Business
- Select your verified business profile
- Click Next
- Requirements
- Click Next
- Overview
- Click Create App
- Your browser should be redirected into the dashboard for your App
- Using the menu panel to the left go to App Settings > Basic
- Configure required fields like App Icon, Privacy Policy, and Category
- App ID: Save this for use later in the guide
- App Secret: Save this for user later in this guide
- Using the menu panel to the left go to Use cases
- Click on Connect on WhatsApp use case
- Click the option “Embedded Signup Builder”
- Click Create Configuration in the section for “Facebook Login for business”
- Click Create
- Copy the generated Config ID for use later in this guide.
- Click Manage Allow List
- Enter the following domains
- Enter your branded dashboard hostname
- Example: https://dashboard.4wifi.net
- Enter your branded dashboard hostname
- Enter the following domains
- Click Create Configuration in the section for “Facebook Login for business”
- Click the option for Configuration
- Callback URL: Enter your branded splash page hostname with the destination /waba_webhook.php added to the end
- Example: https://splash.4wifi.net/waba_webhook.php
- Verified Token: m4w
- Click Verify and Save
- After your configuration is verified the available webhook fields will appear below
- Webhook fields
- messages: Subscribed
- Callback URL: Enter your branded splash page hostname with the destination /waba_webhook.php added to the end
- This completes the META Developer App setup
Marketing 4 WiFi Operator Settings Setup
- Login to your Marketing 4 WiFi dashboard
- Using the menu panel to the left select Operator Settings > Opeartor Customizations
- Main Tab
- WhatsApp Login Enable: ON
- Branding Tab
- Meta App ID: Enter the value collected in step 9.2 of the META App Creation and Configuration section of this guide
- Meta App Secret: Enter the value collected in step 9.3 of the META App Creation and Configuration section of this guide
- Facebook Login for Business Config ID: Enter the value collected in step 12.1.2 of the META App Creation and Configuration section of this guide
- Click Submit
- Main Tab
Enabling WhatsApp as a Client
- Login to your Smart WiFi dashboard
- Integrations > Other Apps
- Click WhatsApp Tile
- Click the Login with Facebook button
- Click Continue to accept permissions on the pop up after logging in
- Select your Business Portfolio and Business Account
- Click Next
- Use a new or existing WhatsApp number
- Phone Number
- Select your desired phone number if you have one, otherwise enter the required information to complete a New WhatsApp number verification process
- Click Next
- Enter the code you receive
- Click Confirm
- Click Add Payment Method and add your desired payment method.
- This must be completed before you will be able to send messages.
- Click Finish
- Phone Number
- You should be redirected back to the Smart WiFi platform, now with your WhatsApp Settings populated
- Click Manage Templates via Meta
- In META’s Message Templates page, click Create Template
- Select the Authentication option
- Click Go to template library
- Select the category Authentication, and subcategory Verify User
- Click the option login_code
- Name your template: login_code
- Code delivery setup: Copy code
- Click Submit
- In META’s Message Templates page, click Create Template
- Return to your Smart WiFi dashboard
- Using the menu panel to the left select Network > Hotspots
- Click Edit for your desired hotspot
- Under the Login Methods, turn WhatsApp ON and click Options
- WhatsApp Template Name: login_code
- Verifcatio0n Instructions
- Disclosure Statement(s)
- Click Submit
- Using the menu panel to the left select Network > Splash Pages
- Edit the splash page currently in use by your desired hotspot
- Using the elemental selector to the right, select Social Connect Buttons
- Drag the Sign in by WhatsApp button onto your Splash Page
- Your hotspot now offers WhatsApp as a login method.