-3

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

dhana
  • 6,487
  • 4
  • 40
  • 63
Veeru
  • 348
  • 4
  • 13
  • 2
    Facebook probably doesn't give out that info.... it can be used for all sorts of nefarious purposes. – benbot Mar 11 '14 at 03:51

1 Answers1

0

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

Huzoor Bux
  • 1,026
  • 4
  • 20
  • 46
  • I did not find any proper method to get all my friends email id's by using graph api and koala can you please provide me any link which will explain in detail. – Veeru Mar 18 '14 at 06:34
  • Facebook never give you any friend's email only person's email who authorize your app with email permission. – Huzoor Bux Mar 18 '14 at 10:12
  • No I can able to get authorized persons email'id, but I need Friends email id's to send invitation to join with my app – Veeru Mar 18 '14 at 10:22
  • Facebook don't give any method to get friends email address.You can notify user's friend by app notification, – Huzoor Bux Mar 19 '14 at 10:54