情景:
总之,我希望邀请用户接受被邀请者用户的申请请求接受事件。
答案 0 :(得分:3)
您可以通过查询带有请求ID的图谱API来获取请求的详细信息(包括创建者详细信息)(您在传递给应用程序画布的request_ids
参数中有接受请求ID的列表):
https://graph.facebook.com/REQUEST_ID
这将以下列格式返回详细信息(如requests documentation中所述,请参阅“接受应用请求/请求ID格式”):
{
"id": "REQUEST_OBJECT_ID",
"application": {
"name": "APP_DISPLAY_NAME",
"canvas_name": "APP_NAME", // This is identical to the app namespace
"namespace": "APP_NAMESPACE",
"id": "APP_ID"
},
"from": {
"name": "SENDER_USER_NAME",
"id": "SEND_USER_ID"
},
"message": "Check out this Awesome Request!",
"created_time": "2012-01-24T00:43:22+0000",
"type": "apprequest"
}