Loading...
 
Features / Usability

Features / Usability


Re: Social Login unable to auto create user

posts: 399

Okay, just one more if you don't mind biggrin

Around line 204 in lib/socialnetworkslib.php, replace this line:
$fp = fsockopen('ssl://graph.facebook.com', 443, $errno, $errstr);

With this:
$fp = stream_socket_client('ssl://graph.facebook.com:443', $errno, $errstr);

And then right after the next line which has this:
if ($fp) {

Place this:
Feedback::success('I am using sockets!');

So that in that area you have the following:
{CODE()}
. $prefs'socialnetworks_facebook_application_secr';
//try socket first
$fp = stream_socket_client('ssl://graph.facebook.com:443', $errno, $errstr);
if ($fp) {
Feedback::success('I am using sockets!');
$request = "GET $url HTTP/1.1\r\n" .
{CODE}

And let me know if the facebook login works and you get the success message.
Thanks again!
lindon

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.