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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:04:57+00:00 2026-05-28T05:04:57+00:00

I am trying to get facebook wall but I am having issues with JSON

  • 0

I am trying to get facebook wall but I am having issues with JSON Nested structure.

following is my code so far

var wall = (JsonObject)fb.Get("me/feed");
List<FBWall> myWall = new List<FBWall>();
foreach (var obj in (JsonArray)wall["data"])
{
    FBWall myWall = new Wall();
    myWall.Id = (string)(((JsonObject)obj)["id"]);

}

actual string in wall is coming something like this

{"data":[{"id":"576376893_10150590188751894","from":{"name":"Afnan Bashir","id":"576376893"},"story":"\"how are you man??? \" on Xain Ul-Abiddin's timeline."........ and so on

now I have got data but when i do (as it should come like this because main file contains other json arrays)

(((JsonObject)obj)["from"]) I get {"name":"Afnan Bashir","id":"576376893"}

now how would you write in foreach to get everything without going to another foreach. I was thinking for some way may be with Linq

  • 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-28T05:04:58+00:00Added an answer on May 28, 2026 at 5:04 am

    It’s always hard to cast an object like FbWall to the returned results of the Graph API. As much as I like type safety and being able to see compile-time errors, it was too much of a pain in the butt to convert the dynamic data over to a type.

    So I’ve become adjusted to using dynamic (if you’re using 4.0).

    If you’re not using 4.0, then you can continue to use wall["data][0]["from"][0]["name"] to get at values of the object returned.

    I really do love living around the warmth and snuggliness of type safety, and I kicked and screamed about having to live down this unknown and uncomfortable road. It will be all right, just “bite the bullet” and “get ‘er done”.

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

Sidebar

Related Questions

I'm trying get values from a GridView using the following code: foreach (GridViewRow row
I've encountered several issues while trying to get Facebook's Graph API work in IE.
I am trying to post to my facebook page wall using curl but i
I'm currently trying to get a Facebook App up and running. But I get
I was trying to get data of wall posts but failed .I am using
I'm having an issue trying to get a Facebook feed dialogue fb.ui to display
I'm trying to reverse engineer how facebook handles their notifications, where when you get
Trying to get an ASP application deployed; it worked for a while but then
Trying to get comfortable with jQuery and I have encountered some sample code that
Trying to get a JSON output to work with jqGrid 'userdata' option. The example

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.