How to get facebook friends emails

432 Views Asked by At

I am working on ruby on rails application and here I need Facebook friends email ID's

I need to send an invitation to all of my friends(Facebook friends) as join in to my application by email.

So I need to get their email Id's. I have tried with omnicontacts Facebook, Koala and Graph API but I did not get email id's of my friends, I can get their names, uid, etc... but I need email ID's of my friends.

Can any one please suggest me any gem in rails application to sort out this problem with small snippet.

Thanks in advance

1

There are 1 best solutions below

4
On

Use Facebook graph api email permission for more details use this reference https://github.com/nsanta/fbgraph