Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook FQL Query Event_member "Inviter" and "Inviter_type"

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?

like image 454
Alexandre Morin Chasse Avatar asked Dec 03 '12 00:12

Alexandre Morin Chasse


1 Answers

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"
    }
  ]
}
like image 52
Stéphane Bruckert Avatar answered Oct 14 '22 06:10

Stéphane Bruckert