Loading...
 
Skip to main content

Features / Usability


You are viewing a reply to Social Login unable to auto create user

Re: Social Login unable to auto create user

If I include the debug lines in the ZendOauth clause:

Copy to clipboard
// try ZendOAuth Feedback::error('Debug'); header("Location: tiki-index.php"); die(); $this->options['callbackUrl'] = $this->getURL(); $this->options['requestTokenUrl'] = 'https://graph.facebook.com/' . $this->graphVersion . '/oauth/access_token'; $consumer = new ZendOAuth\Consumer($this->options); $httpClient = TikiLib::lib('tiki')->get_http_client(); $consumer->setHttpClient($httpClient); $customServiceParameters = [ 'client_id' => $prefs['socialnetworks_facebook_application_id'], 'client_secret' => $prefs['socialnetworks_facebook_application_secr'], 'redirect_uri' => $this->getURL(), 'code' => $_REQUEST['code'] ]; /** @var ZendOAuth\Token\Request $token */ $token = $consumer->getRequestToken($customServiceParameters); $resp = $token->getResponse(); $ret = $resp->getContent(); }


Then I also get the same output as above.