傳送者動作

使用傳送 API 設定輸入指示器或發送讀取回條,以便讓用戶知道您正在處理用戶要求。

範例

curl -X POST -H "Content-Type: application/json" -d '{
  "recipient":{
  	"id":"USER_ID"
  },
  "sender_action":"typing_on"
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"    

欄位

sender_action 欄位

欄位值 說明

mark_seen

將最後一則訊息標示為已讀

typing_on

開啟輸入指示器

typing_off

關閉輸入指示器

  • 輸入指示器會在 20 秒後自動關閉