get facebook email id from graph api C#


  • Hi, I m working in windows application and using Facebook sdk Graph api

      i write code :

        var client = new FacebookClient(_accessToken);
               var me = (IDictionary<string, object>)client.Get("4");
               string firstName = (string)me["first_name"];
               string lastName = (string)me["last_name"];
               string email = (string)me["email"];


    i successfully get firstname lastname but i not get email id.

    so i need permission to get email id. i need sample code that work on desktop application.

    Thanks in advance.

    • Moved by Bob Wu-MT Tuesday, March 20, 2012 6:18 AM third part library (From:Windows Forms General)
    Friday, March 16, 2012 2:53 PM

All replies

  • Visit instead.  Windows Forms is a graphics library, which has nothing to do with the help you are asking.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    Saturday, March 17, 2012 12:37 AM
  • Hi Rohit
    Facebook sdk is a third part library which is not supported in this forum. I suggest you create a new thread in the Facebook developers forum for better support.
    Sorry for any inconvenience this may cause.
    Best Regards,

    Bob Wu [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, March 20, 2012 6:17 AM