package
0.0.0-20240930133758-216256f3c2ff
Repository: https://github.com/webitel/chat_manager.git
Documentation: pkg.go.dev
# README
Meta Messenger Bot API
The Messenger Bot's Pages APIs are available thru HTTP GET
/{bot-callback-uri}
endpoint with specified URL ?query= parameters as described below:
GET /$callbackURI | Description |
---|---|
?pages=setup | Add or Remove Messenger Pages (Accounts) on behalf of the Page's Administrative Role |
?pages=[search[&id=]] | Shows list of engaged Page(s) with it's Accounts |
?pages=subscribe[&id=] | Subscribes Bot's Webhook on Page's update events. Activate Pages |
?pages=unsubscribe[&id=] | Unsubscribes Bot's Webhook from Page's update events. Deactivate Pages |
?instagram=setup | Add or Remove Instagram Pages (Accounts) on behalf of the Page's Administrative Role |
?instagram=[search[&id=]] | Shows list of engaged Page(s) with it's Accounts |
This type of chat client provider may be customized with a several parameters, type of string value.
WARN: Instagram NOT working while your App is in Development Mode !!!
Metadata | Value | Usage |
---|---|---|
client_id | REQUIRED. App-ID. | Client Authentication. |
client_secret | REQUIRED. App-Secret. | Client Authorization. |
instagram_comments | OPTIONAL. Default: "false" . | Forward comment(s) on your Instagram media posts into chat ?text: #comment [variables]: instagram.comment: $comment.text instagram.comment.link: $comment.link |
instagram_mentions | OPTIONAL. Default: "false" . | Forward @mention(s) of you in Instagram media posts or comments into chat ?text: #mention [variables]: instagram.mention: $mention.text instagram.mention.link: $mention.link |
instagram_story_mentions | OPTIONAL. Default: "false" . | Forward @mention(s) of you in Instagram Stories into chat ?text: #story_mention [variables]: instagram.story.mention: $story.caption instagram.story.mention.link: $story.permalink |
This type of chat client provider also propagates the following variables for each chat channel to help you identify which of your Account Page(s) the sender is contacted:
Variable | Description |
---|---|
facebook.page | [A]pp-[s]coped Facebook Account Page unique [ID]entifier |
facebook.name | Facebook Account Page Name |
instagram.page | [I]nsta[G]ram-[s]coped Account Page unique [ID]entifier |
instagram.user | Username of the Instagram Professional or Business Account |