[英]Facebook Graph API - Get user profile from conversations
by using Facebook Graph API I can fetch the conversations between users and my page. 通过使用Facebook Graph API,我可以获取用户与我的页面之间的对话。 One of the returned conversations looks like this: 返回的对话之一如下所示:
{
"message": "message content",
"from": {
"name": "My Page's Name",
"email": "198301820627381@facebook.com",
"id": "198301820627381",
},
"to": {
"data": [
{
"name": "John Doe",
"email": "396169264164870@facebook.com",
"id": "396169264164870",
}
]
},
"id": "m_mid.$cAADurJ0X8UhnJ3tfxVg9jYXJW5fp"
}
I see that I got the user's id
field. 我看到我得到了用户的id
字段。 How can I fetch this user's profile (first name, last name, profile pic) base on this field ? 如何根据此字段获取此用户的个人资料(名字,姓氏,个人资料图片)? (or is there another way ?) (或者还有其他方法吗?)
I followed the Graph API's User Reference but all I got are the user's id
and name
(which I already have from the returned conversation). 我遵循了Graph API的用户参考,但是得到的只是用户的id
和name
(我已经从返回的对话中获得了该name
)。
profile_pic仅适用于PSID(Messenger机器人事件),对于ASID,请仅使用picture字段
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.