Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get my friends from Facebook in my application?

I am developing an ASP.NET application. I implemented Facebook API in my application now I want to access email addresses of my friends on Facebook.

I successfully connected Facebook with my application, but when I use FacebookApi.friends.GetList() it will give only friends userids then I will fire a FQL for each friend userid to access email but some time I got blank instead of email address.

Can someone help. Which is best way facebook rest API or graph API?

like image 920
Vasim Parvez Avatar asked Dec 17 '25 22:12

Vasim Parvez


1 Answers

The answer is almost certainly that one of the following is true:

  • The user hasn't shared an email address with Facebook
  • The user has placed you in a privacy group they deign to share their email address with
  • The user has set their privacy settings to not share their email address at all

If any of these are true, there's nothing you can do to resolve this short of asking your friends to change their privacy settings.

like image 111
Rob Avatar answered Dec 19 '25 23:12

Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!