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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:39:10+00:00 2026-06-06T01:39:10+00:00

I have a facebook app and a user logs in and uses it. Simple.

  • 0

I have a facebook app and a user logs in and uses it. Simple.

Problem: If the user logs out then another user logs in on same pc, the previous users details are loaded.

I cannot log them out of facebook as the user is in my canvas app.

I use:

require_once '/home/public_html/pages/social_login/fb_lib/facebook.php';

    $facebook = new Facebook(array(
      'appId'  => '__app_ID__',
      'secret' => '__secret__',
      'cookie' => true
    ));


    $fb_user = $facebook->api('/me');
    print_r($fb_user); die;

This will show the person who is actually logged in at the top in Facebooks header – but the array shows the previous user.

How can I destroy the previous user details without having the user log in and out again?

  • 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-06T01:39:11+00:00Added an answer on June 6, 2026 at 1:39 am

    Try within the facebook sdk:

    $facebook->destroySession(); – on user logout 🙂

    let me know if that works 🙂

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

Sidebar

Related Questions

I have facebook login setup in my android app. When the user clicks login
I have integrated Facebook into my Android App. When a user now posts a
I just created a Facebook App and I want to: 1. user logs in
I have a fairly simple site which allow users to connect via facebook. I
If I have a Facebook app, and my users agree to allow my app
i have made a facebook app, i want the user to be redirected automatically
I have created a facebook app that if users of it accept should give
I want my iphone app automatically logs on to Facebook so that the user
we have a facebook app and every time a user invites a friend the
I have a Facebook app that can't be used before a user log in

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.