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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:34:07+00:00 2026-06-02T05:34:07+00:00

I am looking to pull data from a fb page to a website without

  • 0

I am looking to pull data from a fb page to a website without having a user authenticate.

The data I wish to display on a webpage is the event listing for a fb page, both the page and the events are open, and I can grab the page and event data ok, eg

http://graph.facebook.com/PAGEID
http://graph.facebook.com/EVENTID

But to get a list of the events in order to get the eventIDs an access token is required eg

http://graph.facebook.com/PAGEID/events

Is this possible to get this data without having a user login to fb and authorise with an application ?
I have looked at just saving an access token but this seems to expire.

any suggestions/pointers would be great, thanks in advance

  • 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-02T05:34:08+00:00Added an answer on June 2, 2026 at 5:34 am

    Providing a quick solution to this set up an app and get an access token, note it would be best to cache the result data so as to not make an api call on each page load

    <?php
    
    //set your app id, client_secret and fb id
    $client_id = 'xxx';
    $client_secret = 'xxx';
    $fbID = 'xxx';
    
    //get an access token
    $access_token = file_get_contents("https://graph.facebook.com/oauth/access_token?    type=client_cred&client_id=".$client_id."&client_secret=".$client_secret);
    
    //use this access token to return the events
    $jsonurl = "https://graph.facebook.com/$fbID/events?$access_token";
    $json = file_get_contents($jsonurl,0,null,null);
    
    // do stuff with $json
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using NSURLConnection to pull data from a webpage. I'm looking to find a
I've got a website that I'd like to pull data from and it's really
I'm looking to see if it's possible to pull data from individual posts; listed
I'm looking for a way to pull user (eg. inetOrgPerson) information in a federated
Looking to move data from a table A to history table B every X
I am using the XmlPullParser to pull data from an XML document. My XML
I have an application that uses Microsoft.Office.Interop.Excel to pull data from an Excel workbook.
I have in my DBAdapter, a getAll which should pull all the data from
I need to pull item quantity from a DB2 database from an aspx page
I need to pull a large amount of data from various tables across a

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.