Loading...
 
Features / Usability

Features / Usability


Re: Social Login unable to auto create user

posts: 400

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