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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:16:50+00:00 2026-05-15T21:16:50+00:00

For example, here’s a ‘page’: http://www.facebook.com/facebook That page has an RSS feed (which I’d

  • 0

For example, here’s a ‘page’:

http://www.facebook.com/facebook

That page has an RSS feed (which I’d like to use, ideally), but a) it browser-sniffs meaning I need to fake the user-agent from a script to fetch it – and that feels really brittle b) the quality of the data returned is really poor.

Can I use the graph api to fetch the same data? This URL:

https://graph.facebook.com/facebook/feed

implies that I can, and json is fine for me, although I’m fetching this from a PHP script rather than client-side. However, when I try that URL for my actual page, I get the following:

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

I don’t understand why an access token is required for my page, whilst other pages are ‘more public’ – is that a configuration on the page somewhere? If not, what’s the best way of obtaining the access key – note that this is not an interactive script asking the page owner to authenticate.

  • 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-15T21:16:51+00:00Added an answer on May 15, 2026 at 9:16 pm

    If I try to access the URL via CURL, it works OK for me in PHP.

    $curlResponse = http('https://graph.facebook.com/facebook/feed');
    $facebookFeed = json_decode($curlResponse['data'], true);
    
    var_dump($facebookFeed);
    

    Using this php function:

    function http($url) {
      $timeout = 30;
      $connectTimeout = 30;
      $sslVerifyPeer = false;
    
      $response = array();
      $ci       = curl_init();
    
      /* Curl settings */
      curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $connectTimeout);
      curl_setopt($ci, CURLOPT_TIMEOUT, $timeout);
      curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ci, CURLOPT_HTTPHEADER, array('Expect:'));
      curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $sslVerifyPeer);    
      curl_setopt($ci, CURLOPT_URL, $url);
    
      $response['http_code'] = curl_getinfo($ci, CURLINFO_HTTP_CODE);
      $response['api_call']  = $url;
      $response['data']      = curl_exec($ci);
    
      curl_close ($ci);
    
      return $response;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take a look at the example here: http://www.brianhare.com/physics/so.html Take a look at console.log where
I wanted to try the example here http://www.codeconscious.com/rebol/rebol-net.html#HTTP print read/custom http://babelfish.altavista.com/translate.dyn reduce ['POST {text=REBOL+Rules&lp=en_fr}]
Following the example here http://www.java2s.com/Code/JavaAPI/javax.swing/JOptionPaneshowInputDialogComponentpObjectmStringtintmIconiObjectoObjecti.htm is it possible to somehow make the default jcombobox
i am trying to follow this example here : http://www.sencha.com/forum/showthread.php?11735-How-can-I-ADD-to-baseParams-rather-than-overwrite-one-set-of-baseParams-with-another The objective is to
I'm following the example here : http://www.codeproject.com/KB/aspnet/BilingualMvc3Part2.aspx Edit: This solution works for Firefox, and
Following the example here: http://www.quirksmode.org/dom/execCommand/ I've discovered that I need an iframe for the
Example here: http://jezebel.com/5896408/racist-hunger-games-fans-dont-care-how-much-money-the-movie-made Click on the 3x3 Tweets screencap they have up. I love
Checking the datagrid example here http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html see the datagrid section It says that if
for example here in documentation http://api.jquery.com/attribute-contains-selector/ it says $('input[name*=man]') I would write instead $(input[name*='man'])
see example here http://jsbin.com/elesa code <p> <a target=_blank href=# title=Download PDF, 58KB, opens in

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.