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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:20:47+00:00 2026-05-16T14:20:47+00:00

I have a problem with API call on Facebook Graph API. This API call

  • 0

I have a problem with API call on Facebook Graph API. This API call (with the php-sdk):

$posts = $facebook->api('/me/posts?since=2010-1-1&until=2010-3-31T23:59:59');

returns empty array, that looks like this using var_dump : { ["data"]=> array(0) { } }

If I modify the call like this:

$posts = $facebook->api('/me/posts?since=2010-1-1');

it returns the right posts. If I modify it like this:

$posts = $facebook->api('/me/posts?until=2010-3-31');

It returns empty array again. However, this

$posts = $facebook->api('/me/posts?until=2010-12-31');

works fine (but for different posts, than I want).

All of the above, with “statuses” or “links” instead of “posts”, return non-empty array.

What is going on?

  • 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-16T14:20:48+00:00Added an answer on May 16, 2026 at 2:20 pm

    I think you are hitting infamous 5000 limit. Facebook acts like if you always have only latest 5000 records. So if your 5000th entry from top was newer than 2010-3-31 it won’t return anything for /me/posts?until=2010-3-31 query.

    Run /me/posts query and look at the bottom item. Facebook won’t return anything older than it no matter what extra query parameters you supply (undocumented feature).

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

Sidebar

Related Questions

I have a strong problem with the Facebook PHP SDK. Here it is. 1)
I'm attempting to do a Facebook FQL Multiquery (via JS SDK FB.api call) to
I am having problems with the Facebook Graph API when trying to call the
I have been creating a helper class for the Facebook PHP API in order
I have a problem with accessing the graph API through my android application that
I have a problem when using jsonp to API HTTPS website. it will return
I have a problem to Store file (from a remote API) in MongoDB, i'm
I have a problem with a function ( setLayerType(LAYER_TYPE_NONE, null) ) available in api
I have the following problem. I have embedded a map using Google Maps' API.
I use the phpflickr api for a project and I have a weird problem

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.