Google Apps Scriptで以下のコードを書いて、実行したのですが、
https://graph.facebook.com のリクエストに失敗しました(エラー: 400)。サーバー応答の一部: {"error":{"message":"Unsupported post request. Object with ID 'me' does not exist, cannot be loaded due to missing permissions, or does not support...(応答の全文を見るには muteHttpExceptions オプションを使用してください)(行 48、ファイル「コード」)
とエラーが出てきました。どこが問題かご存知な方は教えていただけませんでしょうか。
お忙しいところ恐れ入りますが、どうぞ宜しくお願い申し上げます。
GAS
1function sendHttpPost(sender, text) { 2 UrlFetchApp.fetch('https://graph.facebook.com/v2.6/me/messages?access_token=' + PAGE_ACCESS_TOKEN, { 3 method : 'POST', 4 contentType : 'application/json', 5 payload : JSON.stringify({ 6 recipient: { 7 id: sender 8 }, 9 message: { 10 text: '見つかりませんでした' 11 } 12 }) 13 }); 14}
あなたの回答
tips
プレビュー