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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:16:23+00:00 2026-06-05T00:16:23+00:00

I’ve been searching a lot but didnt find a concrete solution for this. My

  • 0

I’ve been searching a lot but didnt find a concrete solution for this. My FB app’s user gets FB access token, then manually logs out of FB and the token is still valid. Why? Is this a bug? How do i determine if user has logged off FB?
No matter what back-end i use, i can manually log out from FB and put url like https://graph.facebook.com/me?access_token=OLd_ACCESS_TOKEN and I’ll get all info about the user.
Look here: scenario #4. The token must be invalid!
What i need is to determine which FB user is currently performing an operation on my FB canvas site. The FB api offers a single entry point for custom canvas application where user’s data can be obtained: the app’s canvas url (you parse signed_request string). Looks like from that point i should create cookie or whatever to remember user’s credentials (id, token) and use it for future operations. This is not so good as user can re-logon with another FB account in a different browser tab and continue working with my app under old account.
Well, if i want to know the current user then i need to check its access token for validity beforer every back-end operation. I redirect user to auth page (if not yet) and store his data in the cookie. Every next operation i extract user info from that cookie and use stored access token. But now, when token is valid even user has logged out from FB i can’t see ways to maintenance it all 🙁
Please help!
Thanks.
UPDATE!
Just found out that i can get different access tokens for the same user:
1) token extracted from signed_request parameter of my canvas Url is working well and becomes invalid once user logs off
2) token the CODE was exchanged to while server-side auth flow (redirect to https://www.facebook.com/dialog/oauth?…, catch CODE at specified redirect_uri, exchange CODE on token using https://graph.facebook.com/oauth/access_token?…) – well, this token remains alive for long.
Looks i need to work with the first case. Anyway, it all is not clear enough for me.
UPDATE2
Well, yes. The documentation says to use signed_request token otherwise, if it’s set not authenticated, run auth flow and get token by other way. The last way produces tokens which stayu alive if user logs off the application.

  • 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-05T00:16:24+00:00Added an answer on June 5, 2026 at 12:16 am

    Well, the temporary solution is to use only token given in signed_request parameter of canvas url’s action.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
Seemingly simple, but I cannot find anything relevant on the web. What is the
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

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.