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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:53:04+00:00 2026-05-29T04:53:04+00:00

Im using the PHP SDK, and after a lot of frustration, I decided to

  • 0

Im using the PHP SDK, and after a lot of frustration, I decided to ask the question here.

So here it goes. I made a login button in this website:
http://greek-night.co.uk/

All goes well when you login, but when you try to logout, it always takes me to http://facebook.com/home.php

I have tried everything codewise, and here are some of the examples i tried.

first:
$logoutUrl = $facebook->getLogoutUrl();

Second:
 $logoutUrl = $facebook->getLogoutUrl(array('next' => $base_url.'/'));

Third
$logoutparams = array( 'next' => 'http://greek-night.co.uk/' );
$logoutUrl = $facebook->getLogoutUrl($logoutparams);

Am I missing anything? I also tried using the ‘Debugger’ and got this:

Application ID  
212442552170234 : Greek Night

User ID 
1112176796 : Michael Schinis

Issued  
1328299200 : 12:00 pm Feb 3 2012

Expires 
1328302800 : 1:00 pm Feb 3 2012
Valid   False
Origin  Web
Scopes  friends_likes read_stream
  • 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-29T04:53:09+00:00Added an answer on May 29, 2026 at 4:53 am

    if this happened, you should include the JS SDK…

    window.fbAsyncInit = function() {
    FB.init({appId: 'YOUR_APP_ID', status: true, cookie: true, xfbml: true, oauth: true,});
    
    FB.Event.subscribe('auth.logout', function(response) {
        window.location.reload();
    });
    
    (function(d){
        var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        d.getElementsByTagName('head')[0].appendChild(js);
    }(document));
    

    always make your page reload after logout from facebook connect

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

Sidebar

Related Questions

Using php-sdk I obtain pages in this way: $array = $this->instance->api( '/' . $fb_user
I am using Facebook PHP SDK to authenticate the user. After generating the LoginUrl
Ok so I'm using Facebook PHP SDK currently I'm rendering the login/logout buttons as
As of this writing, I'm using PHP SDK v3.1.1-12, and I used the same
I'm using the Facebook php sdk to authenticate users from my website. However after
I am integration Facebook connect in my website using php SDK.. Everything is working
Using the PHP sdk I'm signing users into my site with Facebook log in.
I'm using the Facebook PHP-SDK to sign in users and it works fine. I'm
I'm using the latest PHP SDK and have tried $facebook->('/me/friends?fields=installed') and it tells me
I'm using the facebook graph PHP sdk - whenever I call the $facebook->api method

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.