diff --git a/social-connect.php b/social-connect.php index cd611c3..334c07b 100644 --- a/social-connect.php +++ b/social-connect.php @@ -72,7 +72,7 @@ function sc_social_connect_process_login( $is_ajax = false ){ switch( $social_connect_provider ) { case 'facebook': social_connect_verify_signature( $_REQUEST[ 'social_connect_access_token' ], $sc_provided_signature, $redirect_to ); - $fb_json = json_decode( file_get_contents("https://graph.facebook.com/me?access_token=" . $_REQUEST[ 'social_connect_access_token' ]) ); + $fb_json = json_decode( sc_curl_get_contents("https://graph.facebook.com/me?access_token=" . $_REQUEST[ 'social_connect_access_token' ]) ); $sc_provider_identity = $fb_json->{ 'id' }; $sc_email = $fb_json->{ 'email' }; $sc_first_name = $fb_json->{ 'first_name' };