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

The Archive Base Latest Questions

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

Let me preface this by saying that my code seems to work for all

  • 0

Let me preface this by saying that my code seems to work for all users I’ve tested with but one.

I’m using the following multiquery to get a user’s albums and cover image data:

{
   "album_query": " SELECT aid, object_id, name, modified, size, link, cover_pid FROM album WHERE owner = me() ORDER BY modified DESC",
   "cover_query": " SELECT pid, src_small, src_small_width, src_small_height FROM photo WHERE pid IN (SELECT cover_pid FROM #album_query)"
}

The query works as expected. The aid’s that it returns are 100002647632588_33813 and 100002647632588_19303. Note that this is the only instance I’ve seen where an aid has a ‘_’ in it.

My guess is that this is where the problem is, but moving on.

Later I run the following FQL query to get the latest 9 photos in a given album:

SELECT pid, object_id, src, src_width, src_height, src_big, src_big_width, src_big_height, modified FROM photo WHERE aid = 100002647632588_19303 ORDER BY modified DESC LIMIT 0, 9

I get the following response:

{ error_code: “601”, error_msg: “Parser error: unexpected ‘_19303’ at position 138.”, …}

This looks like a bug on facebook’s end since I’m using an id that they provided, but I’m hoping a few more sets of eyes will sort me out.

Thank you for any and all help.

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

    You need to either put “” round the aid – “100002647632588_19303” or use %22 to escape it correctly so it reads as a string and not a number –

    like this –

    SELECT pid, object_id, src, src_width, src_height, src_big, src_big_width, src_big_height, modified FROM photo WHERE aid = "100002647632588_19303" ORDER BY modified DESC LIMIT 0, 9
    

    or

    SELECT pid, object_id, src, src_width, src_height, src_big, src_big_width, src_big_height, modified FROM photo WHERE aid = %22100002647632588_19303%22 ORDER BY modified DESC LIMIT 0, 9
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, let me preface this by saying that I've read the following: Stackoverflow:how can
Let me preface this problem with the following: I've only tested this using the
So let me preface this by saying that I'm not an SQL wizard by
Let me preface by saying that I'm new to ant, and I'm using version
Let me preface this by saying that I'm pretty new to Java. I have
let me preface this by saying I don't really know CSS at all. I'm
Let me just preface by saying it's actually my crappy code that's leaking and
First let me preface this question by saying that I'm fairly new to Javascript.
First off, let me preface this question by saying that my professor is firmly
Let me preface this by saying that perhaps there's a better way to do

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.