「私密回覆」功能讓企業商家的 Facebook 粉絲專頁能夠向發佈貼文、對貼文留言或對粉絲專頁留言的用戶傳送單一訊息。
此功能自 9 月起擴大支援 Facebook 社團,讓企業商家能夠向那些在 Facebook 社團中對粉絲專頁留言的用戶傳送私密回覆。
若要對貼文或留言傳送私密回覆,請傳送 POST
要求到 /PAGE-ID/messages
端點,其中 recipient
參數設為 post_id
或 comment_id
,message
參數則設為您想要傳送的訊息。
以下範例顯示如何回覆顧客在您的粉絲專頁上發佈的貼文:
嗨,我想買禮物送給侄子。你有任何建議嗎?
curl -X POST -H "Content-Type: application/json" -d '{ "recipient": { "post_id": "PAGE-POST-ID" }, "message": { "attachment":{ "type":"template", "payload":{ "template_type":"button", "text":"Of course, what is your budget for the gift?", "buttons":[ { "type": "postback", "title": "LESS THAN $20", "payload": "GIFT_BUDGET_20_PAYLOAD" }, { "type": "postback", "title": "$20 TO $50", "payload": "GIFT_BUDGET_20_TO_50_PAYLOAD" }, { "type": "postback", "title": "MORE THAN $50", "payload": "GIFT_BUDGET_50_PAYLOAD" } ] } } } }' "https://graph.facebook.com/<GRAPH-API-VERSION>/PAGE-ID/messages?access_token=<PAGE-ACCESS-TOKEN>"
觸發像這樣的私密回覆流程。
如需詳細資訊,請查看以下文件: