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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:33:19+00:00 2026-05-23T02:33:19+00:00

This is a rather infuriating problem. We had code that was working perfectly fine

  • 0

This is a rather infuriating problem. We had code that was working perfectly fine for months and now, all of the sudden, it doesn’t. The code just used this url to grab the wall posts we were making on our fan page and showed them on our site. http://graph.facebook.com/%5Bour number]/feed?limit=10

Now it doesn’t work and I’ve spent a ridiculous number of hours sifting through search results on this issue. Unfortunately, everything I find seems to be referring to Facebook apps and not fan pages. I can’t stop seeing how I need to authenticate it using my secret key, but I can’t find anything that shows me what my fan page’s secret key is or if one even exists. I can’t, for the life of me, get this thing working and I can’t figure out why it just randomly stopped working in the first place.

Here’s the error we get:

{
   "error": {
      "type": "OAuthException",
      "message": "An access token is required to request this resource."
   }
}

EDIT: So thanks much to Frank Farmer for finding that post, the problem is needing an access token, which I can’t find ANY solution to getting ANYWHERE.

  • 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-23T02:33:20+00:00Added an answer on May 23, 2026 at 2:33 am

    The way that I was able to do this was by:

    • Creating a new facebook application
    • Logged into Facebook with the user that is an admin for the Facebook Page
    • Opened up a request for permissions for the application

      https://www.facebook.com/dialog/oauth?client_id=‘the_application_id’&redirect_uri=http://your_redirect_uri/&scope=email,read_stream,user_birthday,user_about_me,user_likes,read_stream,user_education_history,user_work_history,user_groups,user_hometown,user_religion_politics,user_location,user_online_presence,user_relationships,user_status,user_website,read_friendlists,offline_access,manage_pages,ads_management,publish_stream

    Your redirect URI MUST match what you have set into the application settings in your facebook application.

    • I basically granted access to everything for this application, the main thing you need to make sure of is ‘manage_pages’

    -After that you will need to copy the ‘code=xxxxxx’ portion of the link that you are forwarded onto after accepting the permissions request. You can THEN request an access_code for the user, once you have that, you can get the Facebook page posts that the user is an admin to.

    https://graph.facebook.com/oauth/access_token?client_id='the_application_id'&redirect_uri=http://your_redirect_uri/&client_secret='the_code_from_above'
    
    • It will then respond with an access code!

    https://graph.facebook.com/feed?access_token=‘your_access_token’

    Below is some sample code you can use with the PHP facebook SDK:

    define('APP_ID', 'your_app_id');
            define('APP_API_KEY', 'your_app_api_key');
            define('APP_SECRET', 'your_app_secret');
    
            $fb = new Facebook(array(
                'appId' => APP_ID,
                'secret' => APP_SECRET,
                'cookie' => false
            ));
    
            $fb_user_id   = 'user_id_of_person_that_has_page_admin_rights';
            $access_token = urlencode('your_access_token_you_received');
    
            try {
    
                $user = $fb->api('/'.$fb_user_id,'GET',array('access_token'=>$access_token));
                $accounts = $fb->api('/'.$fb_user_id.'/accounts','GET',array('access_token'=>$access_token));
    
            } catch (FacebookApiException $e) {
    
                echo $e->getMessage();
    
            }
    
            echo "<strong>User Details:</strong><br />";
            foreach($user as $key => $value){
                echo ucwords(str_replace("_"," ",$key)).": ".$value."<br />";
                $fb->api('/feed','POST',array('access_token'=>$access_token,'id'=>$user_id,'message'=>'Add a post to the user's wall'));
            }
    
            echo "<br /><strong>Accounts Details:</strong><br />";
            foreach($accounts['data'] as $account){
                foreach($account as $key => $value){
                    echo ucwords(str_replace("_"," ",$key)).": ".$value."<br />";
                }
    
                try {
    
                    $posts = $fb->api('/'.$account['id'].'/posts','GET',array('access_token'=>$account['access_token']));
    
                } catch (FacebookApiException $e) {
    
                    echo $e->getMessage();
    
                }
    
                echo "<br /><strong>-- Posts for this account:</strong><br />";
    
                foreach($posts['data'] as $post){
                    foreach($post as $key => $value){
                        echo ucwords(str_replace("_"," ",$key)).": ".$value."<br />";
                    }
                    echo "<br />";
                }
    
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this rather complex query that grabs data from three tables, and now
This is rather infuriating. I'm trying to optimize a very large site, and I'm
I've been having this rather frustrating problem, and having failed so many times, I'm
I always found this rather annoying fact about applets, that they disappear if you
So I'm working on a fun little program and ran across this rather interesting
This code outputs the $captured array, but $captured[1] contains bar/this rather than my expected
I have this rather simple question about Scala. Given that i have to following
I have been working on and off with Java/Python. Now in this situation I
I have this (rather useless) code: __declspec(noinline) int foo( char* ptr, int offset )
Found this rather strange bug in IE8; element.style.top is limited to 1342177 pixels. Even

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.