https://github.com/batin/serverless-facebook-bot
https://github.com/batin/serverless-facebook-bot
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/batin/serverless-facebook-bot
- Owner: batin
- License: mit
- Created: 2019-07-01T21:34:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T11:35:26.000Z (about 3 years ago)
- Last Synced: 2024-05-28T20:44:54.931Z (over 1 year ago)
- Language: JavaScript
- Size: 241 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serverless-Facebook-Bot
---
AWS Serverless Facebook Bot
Used for: https://gitlab.com/mojilala/extension-v2
---
You Can Speak with the bot from: https://www.facebook.com/leostickersapp
### How To Deploy
```
serverless deploy
```
### Persistent menu
```
curl -X POST -H "Content-Type: application/json" -d '{
persistent_menu: [{
"locale": "default",
"composer_input_disabled": false,
"call_to_actions":[
{
"type": "postback",
"title": "🔎 Search Sticker",
"payload": "Search"
},
{
"type": "postback",
"title": "⚡️ Restart Bot",
"payload": "Start"
},
{
"type": "web_url",
"title": "❤️ Download MojiLaLa App ❤️",
"url": "https://unlimited.app.link",
"webview_height_ratio": "full"
}]
}]
}' "https://graph.facebook.com/v3.3/me/messenger_profile?access_token="
```
### Home url
```
curl -X POST -H "Content-Type: application/json" -d '{
"home_url": {
"url": "https://extension-messenger-v2.mojilala.com",
"webview_height_ratio": "tall",
"webview_share_button": "show",
"in_test": true
}
}' "https://graph.facebook.com/v3.3/me/messenger_profile?access_token="
```
### Whitelisted domains
```
curl -X POST -H "Content-Type: application/json" -d '{
"whitelisted_domains": [
"https://extension-messenger-v2.mojilala.com",
]
}' "https://graph.facebook.com/v3.3/me/messenger_profile?access_token="
```
### Get started
```
curl -X POST -H "Content-Type: application/json" -d '{
"get_started": {
"payload": "Start"
}
}' "https://graph.facebook.com/v3.3/me/messenger_profile?access_token="
```