Reputation: 824
I have a problem regarding fetching emails of friends when a person has signed up to my site using his facebook account.
This is my Fql query-
/fql?q=SELECT+uid+,+ name+,+ pic_square+,+affiliations+,+birthday_date+,+sex+,+relationship_status+,+current_location+,+education_history+,+work_history+,+contact_email+ FROM+ user+ WHERE+(sex='female')+AND+uid+ IN +(SELECT+ uid2+ FROM +friend+ WHERE+ uid1=me())
Now when I am not able to fetch the email ids ,I am not able to send invitations to them automatically .
Give me some suggestions
PS I don't want to send personal messages or post on the facebook walls.
Upvotes: 1
Views: 2190
Reputation: 164137
I don't think that you can do that.
If you look at the official documentation for the permissions: http://developers.facebook.com/docs/reference/api/permissions/ and look for the "email" permission which you need the user to grant you in order to get his email, next to it in the "Friends permission" column you'll see "N/A".
That should tell you that you can not get the e-mail address of the friends, and that's a good thing that facebook are not providing.
EDIT
You can also check out this thread: Facebook friends email FQL
Upvotes: 2