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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:45:42+00:00 2026-06-14T02:45:42+00:00

<?php require_onceincludes/strings.php; require_oncephp/function.php; require_oncephp/config.php; require_oncephp/app.php; $currentFBuserid = 0; ///////FACEBOOK GET USER INFORMATION session_start(); //

  • 0
<?php
require_once"includes/strings.php";
require_once"php/function.php";
require_once"php/config.php";
require_once"php/app.php";

$currentFBuserid = "0";

///////FACEBOOK GET USER INFORMATION
session_start();
// Enter the app id and secret below
define('YOUR_APP_ID', '$fbAppID');
define('YOUR_APP_SECRET', '$fbAppSecret');

require_once"php/fbsdk/src/facebook.php";

$facebook = new Facebook(array(
  'appId'  => $fbAppID,
  'secret' => $fbAppSecret,
));

$userId = $facebook->getUser();
if($userId){
    $userInfo = $facebook->api('/' + $userId);
           }

Okay the issue is simple about every two hours I guess the session expires on my site and the error “Fatal error: Uncaught OAuthException: Error validating access token: Session has expired at unix time 1352329200.

The current unix time is 1352330589. thrown in /home/######/public_html/php/fbsdk/src/base_facebook.php on line 1238″

I’m having an impossible time figuring out what the issue is, no matter how long I scrape this site.

BTW:(refreshing the page solves the issue)

I really need help.
Thank you!

  • 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-14T02:45:43+00:00Added an answer on June 14, 2026 at 2:45 am

    Okay the issue is simple about every two hours I guess the session expires on my site and the error “Fatal error: Uncaught OAuthException: Error validating access token: Session has expired at unix time 1352329200.

    User access tokens acquired using the client-side flow expire after two hours.

    You can either extend them, or use the server-side flow – both will result in a token that’s valid for 60 days.

    https://developers.facebook.com/roadmap/offline-access-removal/

    (The latest version of the PHP SDK has a method called setExtendedAccessToken for extending a short-lived token.)

    BTW:(refreshing the page solves the issue)

    If you are using the JS SDK to do the login, then a refresh of course makes it do a new cross-domain request to Facebook, and will get a fresh short-lived access token.

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

Sidebar

Related Questions

PHP PDO Singleton Class: <?php require_once('app/config.php'); // Require constants HOST, DATABASE, USER, PASSWORD /*
I got this PHP code: // connect to mysql require_once('includes/connect.php'); // include config include('includes/config.php');
<?php require_once includes/db_data_inc.php; try { /* In this way I get a db connection
<?php require_once('./includes/connection.php'); ?> <?php require_once('./includes/sql_func.php');?> <?php if(isset($_POST['submit'])) { $isValid = verify_account($_POST['username'],$_POST['password']); if($isValid){ session_name($_POST['username']); session_start();
My problem: require_once '/includes/aws-sdk-1.5.2/sdk.class.php'; My environment: I have a pretty standard PHP site that
index.php <?php require_once('fr.php'); header('Location:'.abspath().directory()); ?> fr.php <?php require_once('functions.php'); ?> functions.php function abspath() { return
My form class: <?php require_once ('Zend\Form.php'); class Sergio_Form_registrationform extends Zend_Form { public function init(){
<?php require_once 'abstract.php'; class Mage_Shell_Snapshot extends Mage_Shell_Abstract { public function _snapshot() { if(!Mage::isInstalled()) {
//I need an output array from my database, //I tried: <?php require_once(includes/connection.php); ?> <?php
from my logout.php : <?php require_once(includes/session.php); ?> <?php require_once(includes/functions.php); ?> <?php if ( isset(

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.