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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:43:28+00:00 2026-06-15T06:43:28+00:00

Trying to execute search on Facebook for pages if (sq.ObjectType.Equals(page)) { searchPath = /search;

  • 0

Trying to execute search on Facebook for pages

    if (sq.ObjectType.Equals("page"))
    {
        searchPath = "/search";

        req.q = sq.Query;
        req.type = sq.ObjectType;

    }

    dynamic results = FBClient_.Get(req);

And I can’t figure out how to parse results.
I cant just simple loop through them.

and I can’t see the structure either since it’s dynamic object
Somewhere down the line it has this structure:

{
   "data": [
      {
         "name": "Platform-3",
         "category": "Health/medical/pharmacy",
         "id": "362034114769"
      },
      {
         "name": "Platform Expos",
         "category": "Product/service",
         "id": "521000451259682"
      },
      {
         "name": "eXo Platform",
         "category": "Software",
         "id": "152603664817327"
      },
      {
         "name": "Platform 28",
         "category": "Bar",
         "id": "104411956289378"
      },
}

but how to get it I’m not sure. How do I convert it into readable format?

  • 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-15T06:43:29+00:00Added an answer on June 15, 2026 at 6:43 am

    Here are some mappings.

    objects => IDictionary<string, object> or IDictionary<string, dynamic>
    arrays => IList<object> or IList<dynamic>
    number => long if whole number, double if have decimal values
    string => string
    boolean => bool
    

    So in your case you could do this.

    dynamic result = fb.Get("...")
    foreach(var data in result.data) {
        var name = data.name;
        var category = data.category;
        var id = data.id
    }
    

    Since result.data is dynamic which is actually IList<object> you can use foreach on it. You could also try this too.

    dynamic result = fb.Get("...")
    IList<dynamic> data = result.data;
    foreach(var d in data) {
        string name = d.name;
        string category = d.category;
        string id = d.id
    }
    

    Or you strongly typed.

    public class SearchResults {
        public IList<SearchResult> data { get; set;}
    }
    
    public class SearchResult {
        public string id { get; set; }
        public string name { get; set; }
        public string category { get; set; }
    }
    
    var result = fb.Get<SearchResults>(...)
    

    If you want to follow C# naming standards use DataContract and DataMember.

    [DataContract]
    public class SearchResults {
        [DataMember(Name = "data")]
        public IList<SearchResult> Data { get; set;}
    }
    
    [DataContract]
    public class SearchResult {
        [DataMember(Name = "id")]
        public string Id { get; set; }
    
        [DataMember(Name = "Name")]
        public string Name { get; set; }
    
        [DataMember(Name = "Category")]
        public string Category { get; set; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying the following code to execute a search and it's not working. On
I am trying to execute the following query in oracle but not able to
I'm trying to copy the Google image search from this page . Here is
I'm trying to execute a search in SharePoint 2010 with the FullTextSqlQuery class: using
I'm trying to execute a query containing LIKE in a SQL Server 2008 database,
I'm trying to figure out a way to execute some sort of search and
I am trying to implement pagination in my search results with Yii. I have
I'm trying to query the sharepoint search with the following code protected ResultTable Search(String
I'm trying to build a query that will search for recent entries based on
I'm trying to execute a search of sorts (using JavaScript) on a list of

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.