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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:02:24+00:00 2026-06-16T17:02:24+00:00

I have a Facebook feed located via this URL: https://www.facebook.com/feeds/page.php?id=131872766880896&format=json . It’s in JSON

  • 0

I have a Facebook feed located via this URL:
https://www.facebook.com/feeds/page.php?id=131872766880896&format=json.

It’s in JSON format as specified by the URL.

When I enter this URL on my browser, I get a valid JSON. However, if I were to request this URL from a PHP page, either using PHP script like file_get_contents then json_decode, or jQuery getJSON, what I get is a HTML response, which is literally a Facebook page asking me to upgrade my browser. The HTML code for this response can be seen by inputting the above URL into the JSON Lint validator.

I have to use this method because the site I am building the feed for does not have an App ID associated with it, so I can’t get an access token unless a personal Facebook account is used, and this is also not a feasible option due to the deprecation of online_access, which means I will have to manually regenerate a long lived access token every 60 days. Or is there another workaround to this? I only need to display the last entry on the page’s Feed, so I was thinking of something like getting the content at $data[‘entries’][0][‘content’], where $data is the JSON object.

The post here, Loading facebook wall feed JSON issues, shows that the user has ended up loading it via PHP and then populating his page via AJAX. But as mentioned above as well, loading it via PHP gives me the HTML code block that was generated by inputting the Facebook feed URL I want to use into JSON Lint. This is what my PHP code looks like:

<?php
$feed = file_get_contents('https://www.facebook.com/feeds/page.php?id=131872766880896&format=json');
echo $feed;
?>
  • 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-16T17:02:25+00:00Added an answer on June 16, 2026 at 5:02 pm

    Facebook is checking the user agent HTTP header – so if you want to access resources that are “protected” this way, you have to send a user agent header with your request that looks like a current, “real” browser.

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

Sidebar

Related Questions

I have a Facebook page feed that I want to access: http://facebook.com/feeds/page.php?format=json&id=123456789 (Not a
I have been trying to implement the Facebook Feed Dialog as follows <a href=http://www.facebook.com/dialog/feed?app_id=12345678&redirect_uri=http://example.com&link=http://example.com&message=Hi+wassup!>
I have a Facebook page at https://www.facebook.com/xxxx and a web site at http://xxxx.com .
I am doing this in order to have Facebook like button in my page:
I have problems parsing a atom facebook feed. Using: PHP's DOMDocument. Errors: Warning: DOMDocument::loadXML():
I have an iPhone app, which posts messages to Facebook me/feed via NSMutableURLRequest and
I have facebook connect button on a page of my site and I want
All, Currently I have a Facebook page that gets updated every few minutes using
I am using Parse mobile platform to post a feed on facebook timeline. This
I have use Facebook Graph API for post feed on Facebook wall. I have

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.