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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:49:17+00:00 2026-05-28T00:49:17+00:00

I am using webtechnick facebook plugin, i have everything set and its FB login

  • 0

I am using webtechnick facebook plugin, i have everything set and its FB login works perfectly.

I am using $fbc =$this->Connect->User(); to fetch FB details of logged in user

And using

<?php 
    echo $facebook->login(array('perms' => 'email,publish_stream','size'=>'small')); 
?>

<?php
    echo $this->Facebook->logout(); 
?>

for login,logout respectively. i am getting details of user after login, but it will not unset after performing a logout();

I am using webtechnick fb plugin version 3.1.1 . Please help me

  • 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-28T00:49:17+00:00Added an answer on May 28, 2026 at 12:49 am

    My help isn’t much help because I haven’t really found a solution. The good news is that you are not alone:

    https://github.com/webtechnick/CakePHP-Facebook-Plugin/issues/43

    What I can tell you is that the facebook cookie (fbsr_{facebook_app_id}) is either not deleting or is being recreated and that is the root of the problem.

    EDIT

    I may have found out what’s going on here. Until the other night I had not bothered to setup my .htaccess files and both http:/www.example.com and http:/example.com were valid.

    In my facebook app, I had set up example.com as a domain and pointed the site URL to http://www.example.com.

    With the fbsr_{app id} cookie, I noticed that it was sometimes on the http://example.com while my cakephp cookies were on www.

    I played around with changing the URL in my facebook app (adding www, removing www) and then also started doing the rewrite rules in .htaccess to add or remove www. I just removed the appdomain entirely from my facebook app, forced www. to the domain, and now everything is kosher.

    So I think the trick is to

    1. Not have the app domain in the facebook app
    2. Fix canonicalization of www via .htaccess

    This ensures that both the cakephp and the facebook cookies are being saved to the identical domain, and when you logout they are removed from said domain.

    Hope this makes sense…

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

Sidebar

Related Questions

I'm using the great Facebook plugin for cakephp 1.3 by http://www.webtechnick.com . This is
I am using Webtechnick's Facebook Plugin - but I am not having any luck
I'm using the webtechnick Facebook plugin to use Facebook authentication in my cakephp application.
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
I am using WebTechNick's file upload plugin to save images on my CakePHP site.
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using JDeveloper , I started developing a set of web pages for a project
Using C#, I need a class called User that has a username, password, active
Using android 2.3.3, I have a background Service which has a socket connection. There's

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.