webtechnick / CakePHP-Facebook-Plugin

CakePHP Facebook Plugin
http://facebook.webtechnick.com
445 stars 138 forks source link

Login button invisible after initial login (cake 2.0 branch) #37

Open tfelix opened 12 years ago

tfelix commented 12 years ago

I got the following problem, I try to get Facebook Connect working. The problem:

1.) $this->Facebook->login(); creates a Login button which shows up. After I click it Facebook asks me for permission which works fine. I accept it and I am logged in.

2.) I logout of my page with $this->Facebook->logout(); I get logged out of Facebook AND my application. So far so good. But when I go to my start page on my website, the Facebook login button does not appear anymore.

It seems the JS tries to poll some information from FB since there is this loading animation but it then disappears into nothing. When I log in via facebook itself I am logged in again in my application. Maybe its a problem with the facebook API itself? But I could not find any clue :( One other detail: when I go to facebook privacy settings and delete the connection to my application/website, the login button appears again...

Testwebsite: http://shoodi.tfelix.de (website for recording shooting results, sorry its in german for now, but I think to recreate the funny behaviour its enough...)

webtechnick commented 12 years ago

Thank you for reporting the issue. Development on CakePHP 2.0 branch is still active and changing. I hope to have an RC soon.

ayamanmerk commented 12 years ago

Hello everyone,

Great plugin, it works just fine! Except, when the user is logged in. I am currently having the same issue as the OP above, except in reverse. When the user is logged in, the logout button simply disappears or technically becomes invisible. This only happens when I set up the redirect as such:

<?php echo $this->Facebook->logout(array( 'redirect' => 'users/logout')); ?>

When there is no redirect, the logout button is simply invisible. I can't, for the life of me, figure out why this is happening. Any insight would be helpful. Thanks!

PS: Using the Cake 2.0 branch as well