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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:46:16+00:00 2026-05-19T13:46:16+00:00

I’ve been trying to add Facebook Connect to a website, but it didn’t seem

  • 0

I’ve been trying to add Facebook Connect to a website, but it didn’t seem to get the user id after logging in. So, after a bit of checking around, I discovered what seems to be the problem:

The facebook library expects $_REQUEST[‘session’] to exist (in the getSession() function), but when I output the $_REQUEST, I get this structure:

Array
(
    [url] 
    [base_domain_AppID]
    [AppID]
    [AppID_user] 
    [AppID_ss] 
    [AppID_session_key]
    [AppID_expires] 
)

where AppID is the application id.

Any idea why this is happening?

I see that the $_REQUEST[‘session’] is supposed to have some fields called ‘uid’, ‘access_token’ and ‘sig’.. the ‘uid’ is AppID_user, but I have no idea about the other two. I’m thinking that, if there’s no other solution, I can convert this data to the object it’s expecting, so it can pass the validateSessionObject() function.

I don’t know if this is relevant, but this happens regardless of whether I enable cookie support or not.

I downloaded the libraries today, so I don’t think I’m using an older version of them.

Edit: in the meantime, I’ve managed to match most of the fields in my $_REQUEST to the ones expected in the session, except that there’s no field called ‘access_token’.

  • 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-19T13:46:17+00:00Added an answer on May 19, 2026 at 1:46 pm

    I had the same problem and the problem was that i was generating the facebook authentication url myself as

    https://graph.facebook.com/oauth/authorize?client_id=$client_id&scope=$scope&redirect_uri=$redirect_uri
    

    Instead, when you create the login url using the facebook class, it generates it as a longer version, including 2 important fields : return_session=1,session_version=3

    If these fields are not included in the auth url, the redirect does not generate the session value.

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

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into

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.