Messenger Guide
Learn how to implement a custom Messenger authentication form into your application.
Step 1: Authenticate to Messenger
Make a POST request to this Unipile API endpoint or use the appropriate SDK Method.
const response = await client.account.connectMessenger({
username: "unipile",
password: "********"
})
todo
curl --request POST \
--url https://{YOUR_DSN}/api/v1/accounts \
--header 'X-API-KEY: {YOUR_ACCESS_TOKEN}' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"provider": "MESSENGER",
"username": "unipile",
"password": "********"
}
'
Step 2 : Handle 2FA checkpoint
At the moment, Unipile don’t provide any tools to solve Messenger’s checkpoints. If a checkpoint is encountered during the authentication, Unipile will end it and return a 501 status.
Updated 5 months ago