locked
How to get facebook friends email id through java script sdk RRS feed

  • Question

  • User-2107339982 posted

    Hi, i want to get facebook friends email ids in my application to send invitations to join my application.

    Thanks in advance

    Wednesday, September 18, 2013 4:51 AM

Answers

  • User281315223 posted

    There are a few APIs and SDKs out there that should enable to you handle interacting through a .NET Application using C# or Javascript :

    It features a fairly straight forward walkthrough that can be found on the Getting Started area, which should have everything that you need to hook into Facebook, post from your application, access friend information and more. The Facebook Developers area should also help point you in the right direction with any additional functionality.

    Bad News regarding Emails

    According to Facebook and their API : 

    Note: There is no way for apps to obtain email addresses for a user's friends.

    This is likely for security reasons to help protect users and their contact information.

    (Reference)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 20, 2013 12:15 AM

All replies

  • User-488622176 posted

    Please check the Facebook javascript SDK at <cite>https://developers.facebook.com/docs/reference/javascript/</cite>

    Wednesday, September 18, 2013 9:39 AM
  • User260886948 posted

    Hi,

    Yes, we can get the facebook friends email id through the javascript sdk.

    Here are some articles, please try to refer to:

    #Get Facebook Friends Using Javascript SDK:
    http://jobyj.in/api/get-facebook-friends-using-javascript-sdk/ .

    #How to get Facebook user's friends information using JavaScript SDK:
    http://stackoverflow.com/questions/3324396/how-to-get-facebook-users-friends-information-using-javascript-sdk .

    #Facebook Javascript SDK Tutorial:
    http://hayageek.com/facebook-javascript-sdk/ .

    Best Regards.

     

    Thursday, September 19, 2013 11:46 PM
  • User-1635195291 posted

    Hi jaiswalm60,

    You can read the content using by sending a request to the graph api(http://developers.facebook.com/docs/reference/api/) in fb with a valid user access token.

    1. You can retrieve the user access token via javascript SDK.

    2. After getting that request the email of that particular user using fb.uimethods

    Sample Code:

    FB.api('/', 'POST', {
            batch: [
                { method: 'GET', relative_url: 'me'},
                ...
            ]
        }, function (response) {
            console.log(response);
        });

    The request url should be something like "https://graph.facebook.com/me?access_token=user_acess_token" & this will display the basic details about the user.

    Hope this helps.

    Thanks,

    Jatin

    Thursday, September 19, 2013 11:54 PM
  • User281315223 posted

    There are a few APIs and SDKs out there that should enable to you handle interacting through a .NET Application using C# or Javascript :

    It features a fairly straight forward walkthrough that can be found on the Getting Started area, which should have everything that you need to hook into Facebook, post from your application, access friend information and more. The Facebook Developers area should also help point you in the right direction with any additional functionality.

    Bad News regarding Emails

    According to Facebook and their API : 

    Note: There is no way for apps to obtain email addresses for a user's friends.

    This is likely for security reasons to help protect users and their contact information.

    (Reference)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 20, 2013 12:15 AM
  • User-2107339982 posted

    Thanks Rion William and all of you for your answers. 

    Friday, September 20, 2013 9:27 AM