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

Here is an example of polymorphism from http://www.cplusplus.com/doc/tutorial/polymorphism.html (edited for readability): // abstract base
see example here http://jsbin.com/elesa code <p> <a target=_blank href=# title=Download PDF, 58KB, opens in
Check out my example here: http://timkjaerlange.com/foobar/test.html I'm currently trying to apply a class to
Here is a specific example which is not CLS-complaint according to VS.NET 2005. Public
Here is an example: <h:outputText value=#{myBean.myMoney}> <f:convertNumber type=currency currencySymbol=$ /> </h:outputText> Given that I
OK, probably best to give an example here of what I mean. Imagine a
ex: <a><strike>example data in here</strike></a> I want everything inside the a tag, to the
Here is an example of what I've got going on: CREATE TABLE Parent (id
Here's a perfect example of the problem: Classifier gem breaks Rails . ** Original
here is my example code: Public Class Parent Private _TestProperty As String Private WithEvents

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.