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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:37:51+00:00 2026-06-10T10:37:51+00:00

I just followed the sample in here https://developers.facebook.com/docs/reference/fql/ , but I replaced the query

  • 0

I just followed the sample in here https://developers.facebook.com/docs/reference/fql/ , but I replaced the query with like this https://developers.facebook.com/docs/reference/fql/status/ but I replaced the uid with me()

So here’s my code:

 $token_url = 'https://graph.facebook.com/oauth/access_token?client_id='
            . $app_id . '&redirect_uri=' . urlencode($my_url) 
            . '&client_secret=' . $app_secret 
            . '&code=' . $code;

$access_token = file_get_contents($token_url);

$q = urlencode("SELECT status_id, message FROM status WHERE uid=me()");

$fql_query_url = 'https://graph.facebook.com/'
        . '/fql?q='.$q
        . '&' . $access_token;
$fql_query_result = file_get_contents($fql_query_url);
$fql_query_obj = json_decode($fql_query_result, true);

echo '<pre>';
print_r("query results:");
print_r($fql_query_obj);
echo '</pre>';

This one does not return anything. It just gives me an empty array.

enter image description here

This is already the permission of my app:
enter image description here

I don’t know what’s the problem in here anymore. I’m sure that my app Id and secret key are correct.

What’s wrong with this code? i’m getting an empty list. It’s not fetching my status updates. Your help would be greatly appreciated and rewarded!

Thanks!

  • 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-10T10:37:53+00:00Added an answer on June 10, 2026 at 10:37 am

    That permission is just for the settings. It doesn’t signify whether each individual user has granted permissions.

    Try /me/permissions?fields=read_stream on the user with the correct access token to see whether the user has given permission.

    You should get

    {
      "data": [
        {
          "read_stream": 1
        }
      ]
    }
    

    Once you are sure that is set then it should work. A quick way to check would be try it in the Graph Explorer against your access token

    https://developers.facebook.com/tools/explorer?fql=SELECT%20status_id%2C%20message%20FROM%20status%20WHERE%20uid%3Dme()

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

Sidebar

Related Questions

I'm using Rails. I just installed the backbone-rails gem and followed the instructions here
Hi, I'm trying to access S3 using jets3t library. I just followed an sample
I followed the installation here: http://code.google.com/p/chromedevtools/wiki/DebuggerTutorial I installed them on both machines, and it
I realized today that I have blindly just followed this requirement for years without
I have just meticulously followed MS instructions for customising a dynamic data page template
I just installed Web Developer Express 2008 and the MVC framework (followed all the
I just started using git with github. I followed their instructions and ran into
I just deployed my first django app to the Heroku platform. I basically followed
Just checking my JS and I have an error, but I cannot see where.
Just learning the world of jquery, and all my googling gives examples like this:

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.