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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:48:34+00:00 2026-05-21T06:48:34+00:00

Using Facebook Graph API and my app credentials I am able to retrieve a

  • 0

Using Facebook Graph API and my app credentials I am able to retrieve a valid token:

171372936213670|xxxxxxxxxxxxxxxxxx-650901429|x_xxxxxxxxxxxxxxx-xxxxxxxx

The code I use to retrieve Wall Posts:

function getFbWallPosts($user, $limit=5) {
    $ci =& get_instance();
    $token = $ci->facebook->getAccessToken();
    $param = array(
        'access_token' => $token, 
        'limit' => $limit,
        );
    $posts = $ci->facebook->api("$user/feed", 'GET', $param);

    return $posts; 
}

The function always returns an empty jSON result:

{"data":[]}

Also tested directly accessing Wall Posts using cURL:

function fbrequest($url) {
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $output = curl_exec($ch);
    curl_close($ch);

    return $output;
}

…to no avail.

EDIT: Also tried using file_get_contents but it also returns empty jSON:

function fbrequest($url) {
   $output = file_get_contents($url);
   return $output;
}

Tried pasting the request string directly on my browser (without a user logged in to Facebook):

https://graph.facebook.com/AValidFacebookUsername/feed?access_token=171372936213670|xxxxxxxxxxxxxxxxxx-650901429|x_xxxxxxxxxxxxxxx-xxxxxxxx

…successfully returns a jSON string with all the posts

Any ideas guys?

  • 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-21T06:48:35+00:00Added an answer on May 21, 2026 at 6:48 am

    I just found out that there is nothing wrong with the codes I’m writing. The problem is with how I interpreted the process and, eventually, the result. There are pre-requisites on accessing other user’s data on FB and in case of group pages, one of them is that the user requesting the data MUST BE A FAN OF THAT GROUP.

    Silly me…

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

Sidebar

Related Questions

I'm using Facebook Graph API on Google App Engine. I was able to fetch
I'm developing an HTML app that integrates Facebook Graph API using Javascript SDK. Facebook
I created an APP on Facebook and using graph API explorer, I selected my
I am trying to retrieve information through Facebook graph api, using the below code
I'm using Facebook graph API for my iPhone app to get a list of
I am developing an iphone app and using facebook graph API. I need to
I'm using the Facebook Graph API to retrieve items from my wall with a
I'm trying to retrieve data using the new graph API, however the token I'm
I'm using Facebook Connect along with the Facebook Graph API to fetch user's email
I'm trying to publish checkin using Facebook Graph API. I've gone through Facebook API

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.