/** * Return facebook user data * * @param null|string $key * @return mixed, $pluginRoute = false */ public function user($key = null) { return $this->FacebookConnect->getUser($key); }
public function login() { $this->user = FacebookConnect::getUser($this->permissions, $this->url_app); dd($this->user); }