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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:30:29+00:00 2026-05-23T07:30:29+00:00

I am using FQL. And here is my code which is fethcing message from

  • 0

I am using FQL. And here is my code which is fethcing message from stream table.

 NSString *fql = [NSString stringWithFormat:@"SELECT actor_id, message,likes FROM stream WHERE source_id = %lld  ORDER BY likes limit 50",_session.uid]

And I am getting result like below.

{
    "actor_id" = 100002464401210;
    likes =         {
        "can_like" = 1;
        count = 2;
        friends =  (
            {
                uid = 10000215363608;
            }
        );
        href = "http://www.facebook.com/browse/?type=likes&id=106536123438461";
        sample =             (
        );
        "user_likes" = 1;
    };
    message = "hello wall testing..";
},
    {
    "actor_id" = 10000223601210;
    likes =         {
        "can_like" = 1;
        count = 0;
        friends =             (
        );
        href = "http://www.facebook.com/browse/?type=likes&id=108123469280566";
        sample =             (
        );
        "user_likes" = 0;
    };
    message = "New integration";
},

I want to sort my query like most liked post will be on top.
How will I modify my query to show most liked on top.

Thanks in advance

  • 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-23T07:30:30+00:00Added an answer on May 23, 2026 at 7:30 am

    You have specified the response format as JSON .That’ why you are getting response in JSON format.

    See below blog post to parse you response.

    Tutorial: JSON Over HTTP On The iPhone

    iPhone JSON Flickr Tutorial – Part 1

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

Sidebar

Related Questions

I am using fql from facebook and querying user table to get profile_url string
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
can I retrieve it using fql or graph api
Using jQuery's UI Tabs. This is my code. <div id=tabs> <ul> <li><a href=#tabs-1>Find a
Using an access token with offline_access (which I believe is the ultimate and most
Using the below XML, I need to figure out which person worked more hours
I am using a 3rd-party rotator object, which is providing a smooth, random rotation
I am attempting to pull some information from my tnsnames file using regex. I
Possible Duplicates: Does facebook fql contain the sql like operator? FaceBook query using FQL
I am trying to get a facebook fql query to work using the browser,

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.