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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:51:27+00:00 2026-05-24T16:51:27+00:00

I am trying to log in a user to facebook using an offline token

  • 0

I am trying to log in a user to facebook using an offline token (I had it working for a long time), but it seems maybe facebook changed something?

Quick Run Down:
I had the Facebook PHP SDK (2.1) Authentication through OAuth. I recall the return data after getting an access token was something like:

callbackurl?session={access_token:....,expires:....,session_key....}

etc.. Basically a JSON object in the URL.

But now it appears they have changed parameters and all I get back is something like this:

[fb_199972360033499_access_token] What are these digits?
[fb_199972360033499_user_id]

(I have tried with (PHP SDK 2.1 and 3.1.1)

Previously I was storing setting up saved token data with

$facebook->setSession($dataArray); 

But now I no longer know what to do, if anyone has any clues on where to look Id appreciate it, as I have a hard time finding the right instruction in the actual FB documentation.

  • 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-24T16:51:30+00:00Added an answer on May 24, 2026 at 4:51 pm

    New PHP SDK

    For examples on using the new PHP SDK you should look:

    https://github.com/facebook/php-sdk

    http://developers.facebook.com/blog/post/534/

    It’s also a good idea to take a look at the source code.

    Offline Access

    http://developers.facebook.com/docs/authentication/

    If you have an authorised user you can now get the user access_token with:

    $access_token = $facebook->getAccessToken();
    

    If no authorised user is available it will return the application access token.

    If your app needs an access token with an infinite expiry time (perhaps to take actions on the user’s behalf after they are not using your app), you can request the offline_access permission.

    To get the user id:

    $user_id = $facebook->getUser();
    

    Application Id

    [fb_199972360033499_access_token] What are these digits?

    Those digits should be your application id.

    Persistant Data

    $facebook->setSession($dataArray);

    This should no longer be necessary as the PHP SDK takes care of that. Unless you want to store your own data – in which case you should create your own session data.

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

Sidebar

Related Questions

I'm trying to log in a user as part of a form submit, but
In a view I'm trying to create a new user and then log them
I am trying to log a method's parameters by using reflection. I read the
Using Forms Authentication in ASP.NET MVC when trying to log back into a site,
I am trying to disable log rotation, for file handler using, FileHandler fh =
Couldn't find similar enough question so I'll ask. I'm trying to use facebook log-in
really need your help with log-in-with-facebook feature I'm trying to implement on my website.
I'm trying to implement Facebook Connect on a website with .NET MVC using C#.
I'm using Rails 3.0.9. Trying to login to my (localhost) site through Facebook. My
Trying to post a status update using facebook php sdk. Code posted below. As

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.