前提・実現したいこと
bot開発(というかwebアプリすら)が初めてなので、facebook公式にのっとってnode.jsで開発している。
ボットでようこそ画面を使用したい。
curl -X POST -H "Content-Type:application/json" -d '{"get_started":{"payload":"greeting"}}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<自分のアクセストークン>"
エラーメッセージ
{"error":{"message":"(#100) Requires one of the params: get_started,persistent_menu,target_audience,whitelisted_domains,greeting,account_linking_url,payment_settings,home_url","type":"OAuthException","code":100,"fbtrace_id":"HFqQWpe/eUb"}}
該当のソースコード
cURL
1curl -X POST -H "Content-Type:application/json" -d '{"get_started":{"payload":"Greeting"}}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<自分のページのアクセストークン>"
試したこと
get_startedの " の前に \ を挿入してみたりしたのですが、調べても詳しいことはわからず…
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。