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 7834019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:00:55+00:00 2026-06-02T13:00:55+00:00

net but wanted to try to do this code in ASP.net instead of my

  • 0

net but wanted to try to do this code in ASP.net instead of my normal classic ASP.

I have been trying to find code examples that would show me how to parse out the name & id in a returned JSON from a facebook API Graph call. The JSON return looks like this from Facebook:

{
  "data": [
    {
      "name": "David xxxxxx", 
      "id": "05121212", 
      "administrator": true
    }, 
    {
      "name": "Billy xxxxxxx", 
      "id": "0005128888"
    }
  ], 
  "paging": {
    "next": "https://graph.facebook.com/xxxxx/members?format=json&limit=5000&offset=5000&__after_id=xxxxx"
  }
}

Any examples on how to go about parsing out just the name and id from the JSON response in ASP.net would be awesome!

Thanks,

David

  • 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-06-02T13:00:56+00:00Added an answer on June 2, 2026 at 1:00 pm

    Go for, http://james.newtonking.com/

    string response = <your fb data>;   // I am lazy :P
    JObject obj = JObject.Parse(response);
    JArray data = (JArray)obj["data"];
    for(int i=0,int len=data.count; i < len ; i++)
    {
     string name = data[i]["name"].ToString();
     string id = data[i]["id"].ToString();
     string administrator = string.Empty;
     if(data[i]["administrator"]!=null)
     {
       string administrator = data[i]["administrator"].ToString();
     }
    
    }
    

    I think, this code is enough to get you going.
    Always check for null as api data may or may not have that value.

    Edit: I noticed that you wanted a VB code, sorry. But it may help others, so leaving it here. You can convert the code from any C# to VB convertor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wanted to try GAE since launch, but coming from ASP .NET and
I've been searching the net but couldn't find a solution for this. I need
I wanted to try out an example you can find here: http://php.net/manual/en/function.include.php , but
I don't know alot about ASP.Net but I'm trying to make a new control
Tried examples from 'php.net' but don't understand what's the problem. Any suggestions? <?php $_SESSION['test']
I'm new to C#/.NET but I've been doing TDD for quite some time now.
Lots of tutorials around the net but none of them can explain me this:
Basically i want to do the below in .NET but i have no idea
I am trying to create a chat application in .net but I am confused
i have an asp.net mvc website with a SQL server backend. For every table

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.