Rodrigo Roma
Rodrigo Roma

Reputation: 1

How to get user's birthday but the user isn't me, neither my friends

I'm trying to get the birthday_date field from the table USER of all users who are attending to a specified event. I'm using the following query:

SELECT name, sex, pic_big, profile_url, birthday, birthday_date, meeting_sex FROM user WHERE uid IN (SELECT uid FROM event_member WHERE eid=XXXXXXXXXXX AND rsvp_status='attending')

But all the returned data in the fields birthday, birthday_date and meeting_sex are null if the user isn't a friend of mine (the access_token was generated using my facebook account). Even if I can see the user's birthday in the user's profile page I cannot retrieve this information with the FQL.

I think it's not a permission issue because I granted all the birthday permissions (the user and friends permissions) and because this permissions are to get the user or friends birthday, not a general user birthday (not me or my friend).

@Black Maggie: But it's not an event permission. I can't get the birthday_date independent of the event. For example, try running the following query:

select birthday_date, profile_url from user where uid = 100002172431048

I used an access_token with all the permissions granted. The field birthday_date always return null but when I click to browse the user profile I can see the birthday date.

Upvotes: 0

Views: 614

Answers (1)

Black Maggie
Black Maggie

Reputation: 497

You are granting OTHER users the right to access YOUR information.

You cannot grant the permission to access OTHER PEOPLE information without THEIR GRANT.

Upvotes: 1

Related Questions