webtechnick / CakePHP-Facebook-Plugin

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

Plugin seems not working with latest cakephp version #103

Closed DamianoBuscemi closed 11 years ago

DamianoBuscemi commented 11 years ago

Can you help? The helper does not show the logout, moreover if you force logout with auth, $this->Auth->logout(); the plugin recreates the session and you are permanently logged in.

Do you have any hint in order to use the plugin?

justKingo commented 11 years ago

Same problem here with CakePHP 2.2.x! The Logout Button shows if I use

$this->Auth->logout();

In that way the auth logout would not work. If I echo

$this->Facebook->logout(array('redirect' => array('controller' => 'users', 'action' => 'logout')));

the logout button does not show :(

Another problem occurs if I want to access the user information of facebook login. In the video tutorial it's possible to access with the following code:

//AppController
public function beforeFilter() {
   $this->set('facebook_user', $this->Connect->user());
}

and

//View
debug($facebook_user);

Is there a new solution now?

dft87 commented 11 years ago

I have same problem, can someone fix this? $this->Connect->user() always return 0

rekik-mehdi commented 11 years ago

I get the same problem, it is solved when i updated vendors files with new facebook-php-sdk "3.2.1"

webtechnick commented 11 years ago

Updated plugin vendor files to latest facebook SDK 3.2.1 in master branch.