Skip to content

Instantly share code, notes, and snippets.

@anop72
Last active October 2, 2016 07:25
Show Gist options
  • Save anop72/73d526accc65fc05362bee377e49fa52 to your computer and use it in GitHub Desktop.
Save anop72/73d526accc65fc05362bee377e49fa52 to your computer and use it in GitHub Desktop.
fb_message_api
curl -X POST "https://graph.facebook.com/v2.7/me/subscribed_apps?access_token=PAGE_APP_TOKEN"
curl -X POST -H "Content-Type: application/json" -d '{
"setting_type":"greeting",
"greeting":{
"text":"greeting message"
}
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_APP_TOKEN"
@boddumanohar
Copy link

when ran in terminal, shows an error:

{"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190,"fbtrace_id":"FbV8frn2vRj"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment