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

  • Home
  • SEARCH
  • 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 6536879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:32:50+00:00 2026-05-25T10:32:50+00:00

string query1 = String.Format(\query1\:\SELECT pid, object_id, src_big, owner FROM photo where object_id={0}\, photoFbId); string

  • 0
            string query1 = String.Format("\"query1\":\"SELECT pid, object_id, src_big, owner FROM photo where object_id={0}\"", photoFbId);
            string query2 = String.Format("\"query2\":\"SELECT first_name, last_name FROM user where uid in (select owner from #query1)\""); 

            var client = new FacebookClient(accessToken);
            dynamic imageArray = client.Query(query1,query2);

gives (100) queries parameter: array expected. in line dynamic imageArray = client.Query(query1,query2);
What have I done wrong? The Query method accepts params string so it should be fine..

  • 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-25T10:32:51+00:00Added an answer on May 25, 2026 at 10:32 am

    If you pass more then one parameter to the Query method, it will automatically use the multi-query instead of single query.

    The Facebook C# SDK automatically adds the query1 and query2. you only need to enter the query.

    var fb = new FacebookClient("access_token");
    dynamic result = fb.Query(
        string.Format("SELECT pid, object_id, src_big, owner FROM photo where object_id={0}", photoFbId),
        "SELECT first_name, last_name FROM user where uid in (select owner from #query1)");
    

    You can then access the values of the fql by.

    var result0 = result[0].fql_result_set;
    var result1 = result[1].fql_result_set;
    

    You can learn more about making requests using Facebook C# SDK at http://blog.prabir.me/post/Facebook-CSharp-SDK-Making-Requests.aspx

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

Sidebar

Related Questions

I am working in C# with multi Queries. var query1 = string.Format(SELECT uid2 FROM
var response = _facebookAPI.Fql.Query(String.Format(SELECT uid FROM event_member WHERE eid={0}, myevent)); I would like to
I am building an ObjectQuery like this: string query = select value obj from
Imagine I have the following SQL query: SELECT id,name FROM user WHERE id IN
I am using this query for pagination string selectStatement = SELECT * FROM (
I'd like to build a query string based on values taken from 5 groups
I want to call an ASHX file and pass some query string variables from
In my base page I need to remove an item from the query string
SimpleDateFormat formatter = new SimpleDateFormat(ddMMyyyy_HHmmSS); String strCurrDate = formatter.format(new java.util.Date()); String strfileNm = Customer_
I use an API that expects a SQL string. I take a user input,

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.