Join us in San Francisco on the 29/30th of October for two days of developer workshops and technical talks

Link your Facebook Page to your Nexmo account

Generate a JWT

You will need to generate a JWT to validate the linking of your Facebook Page to your Nexmo account. You can skip this step if you have already linked your Facebook Page to your Nexmo account.

In the following command make sure you paste in the Application ID of the Nexmo application you created in the previous step:

JWT="$(nexmo jwt:generate ./private.key application_id=YOUR_APP_ID)"

NOTE: The default expiry time for the JWT is 15 minutes.

Type the following command to echo your JWT:

echo $JWT

Copy the JWT text to the clipboard. You will use it later to validate the linking of your Facebook Page to your Nexmo account.

To link your Facebook Page to your Nexmo account navigate to the following page:

Select the Facebook Page you want to link to your account from the dropdown list.

Paste the JWT you previously copied to your clipboard into the JWT Token field and click Subscribe. You receive a message confirming the page is now linked to your account.


Sending a Facebook message with failover

The Dispatch API provides the ability to create message workflows with failover to secondary channels. This task looks at using the Dispatch API to send a Facebook message with failover to the SMS channel.

Steps