Sending invitations to friends

May 27, 2009 at 2:20 PM
Edited May 27, 2009 at 2:20 PM


I am using FriendList contntrol of 2.0 libaray. I am getting the contact list with all the detail like name, display photo, about me etc... but it is not showing the email address. I wanted to send invitation to my friends. Below is the code I am using to get the contacts

  // ApplicationKey and Secret are acquired when you sign up for an
        _fbService.ApplicationKey = "app_key";
        _fbService.Secret = "secret_key";
        _fbService.IsDesktopApplication = false;
        string sessionKey = Session["Facebook_session_key"] as String;

        // When the user uses the Facebook login page, the redirect back
        // here will have the auth_token in the query params
        string authToken = Request.QueryString["auth_token"];

        // We have already established a session on behalf of this user
        if (!String.IsNullOrEmpty(sessionKey))
            _fbService.SessionKey = sessionKey;
            _fbService.uid = (long)Session["Facebook_userId"];
        // This will be executed when Facebook login redirects to our page
        else if (!String.IsNullOrEmpty(authToken))
            Session["Facebook_session_key"] = _fbService.SessionKey;
            Session["Facebook_userId"] = _fbService.uid;
            Session["Facebook_session_expires"] = _fbService.SessionExpires;

        // Need to login
            Response.Redirect(@"" + _fbService.ApplicationKey + @"&v=1.0\");

        if (!IsPostBack)
            // Use the FacebookService Component to populate Friends
            FriendList1.Friends = _fbService.friends.getUserObjects();

Please help