Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:09:36+00:00 2026-05-27T18:09:36+00:00

Using Facebook SDK ( http://facebooksdk.codeplex.com/ ), you do something like this… string myAccessToken =

  • 0

Using Facebook SDK (http://facebooksdk.codeplex.com/), you do something like this…

        string myAccessToken = "something";
        FacebookClient client = new FacebookClient(myAccessToken);
        IDictionary<string, object> friendData = (IDictionary<string, object>)client.Get("/me/friends");

Now how do you get the friends data out from the dictionary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:09:37+00:00Added an answer on May 27, 2026 at 6:09 pm

    Your function for storing friends list from json data:

    string myAccessToken = "something";         
    FacebookClient client = new FacebookClient(myAccessToken);         
    
    var friendListData = client.Get("/me/friends");
    JObject friendListJson = JObject.Parse(friendListData.ToString()); 
    
    List<FbUser> fbUsers = new List<FbUser>();
    foreach (var friend in friendListJson["data"].Children())             
    {   
        FbUser fbUser = new FbUser();
        fbUser.Id = friend["id"].ToString().Replace("\"", "");                 
        fbUser.Name = friend["name"].ToString().Replace("\"", "");                 
        fbUsers.Add(fbUser);
    }
    

    Class for facebook user

    Class FbUser {
        String Id { set; get; }
        String Name { set; get; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using OAuth/Facebook-C#-SDK? when I post an image like: http://im.in.com/connect/images/profile/oct2009/Google_300.jpg is resized to: my C#
How do I like a page using the new Facebook iOS SDK? (http://github.com/facebook/facebook-ios-sdk) I'm
originally i was using a .net sdk for facebook found here: http://facebooktoolkit.codeplex.com/ but now,
I'm using the Facebook Connect for iPhone SDK at http://github.com/facebook/facebook-iphone-sdk/ and am trying to
I plan to use http://facebooksdk.codeplex.com/ for replacing my current integration with facebook. Any sample
I am using the following android fb connect library. http://github.com/facebook/facebook-android-sdk/ problem is after successful
I'm using Facebook Connect's Comments Box ( http://wiki.developers.facebook.com/index.php/Comments_Box ) to handle comments on my
Microsoft recently announced their Facebook SDK. http://msdn.microsoft.com/en-us/windows/ee388574.aspx Has anyone tried using it with ASP.NET
I have integrated the facebook in my app using http://sourceforge.net/projects/facebook-bb-sdk , it work fine
I am using a modified version php-sdk version 3.0.0 sample code at github.com/facebook within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.