vs2010 wpf c#: how to get friends list from facebook? (Desktop application)

Posted by Ash on Stack Overflow See other posts from Stack Overflow or by Ash
Published on 2012-06-06T10:05:25Z Indexed on 2012/06/06 10:40 UTC
Read the original article Hit count: 231

Filed under:
|
|

As per this link code from stack overflow i have try this code for getting friendslist but after login i got this error "requires valid signature"

string APIKey = ConfigurationManager.AppSettings["API_Key"];
string APISecret = ConfigurationManager.AppSettings["API_Secret"];

Facebook.Session.ConnectSession connectsession = new Facebook.Session.ConnectSession(APIKey, APISecret);
        Facebook.Rest.Api api = new Facebook.Rest.Api(connectsession);
        var friends = api.Friends.GetLists();
        foreach (var friend in friends)
        {
            System.Console.WriteLine(friend.name);
        }

guide me to find out the solution

Thanks ash

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf