我可以通过Facebook Messenger的API发送常规图像 . 但是,当我发送360度图像时,它会作为常规图像到达 .
当我通过浏览器在Facebook聊天中发送相同的360度时,它工作正常,因此360图像没有问题 . 我知道这是Facebook Messenger最近增加的功能 .
我已尝试直接通过Messenger API发送图像,我也尝试使用附件上传API保存图像,然后使用attachment_id发送 .
有谁知道如何通过messenger API发送360度图像?
这是使用attachment_id方法的示例请求:
curl -X POST -H "Content-Type: application/json" -d '{
"recipient":{
"id":"1254459154682919"
},
"message":{
"attachment":{
"type":"image",
"payload":{
"attachment_id": "1745504518999123"
}
}
}
}' "https://graph.facebook.com/v2.6/me/messages?access_token=<PAGE_ACCESS_TOKEN>"