Facebook FQL Query Event_member “Inviter” and “Inviter_type”

北城以北 提交于 2019-11-30 03:59:44

问题


In the description of the FQL event_member page, it says that the column inviter should inform us about the ID of the user or page who invited a UID at the event, and inviter_type should inform us about whether the inviter was a user or a page. I have tried these functions on both public events and an event that I have created myself, but it always fails.

"inviter": null and "inviter_type": "" for every user.

Is this a bug, an old function that works no more, or a new function that does not work yet?


回答1:


It seems that you only are allowed to know who invited you and how.

The only command that will make the inviter and inviter_type attributes useful is:

select eid, uid, inviter, inviter_type, rsvp_status 
from event_member where eid=EVENT_ID and uid=me()

In that case, you are exactly looking for the person who invited you to an event you've been invited to!

Result:

{
  "data": [
    {
      "eid": 3811052099231, 
      "uid": 1022369839, 
      "inviter": 1406101549, 
      "inviter_type": "user", 
      "rsvp_status": "attending"
    }
  ]
}


来源:https://stackoverflow.com/questions/13675640/facebook-fql-query-event-member-inviter-and-inviter-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!