Skip to content

Commit

Permalink
Removing facebook file_get_contents function.
Browse files Browse the repository at this point in the history
  • Loading branch information
thenbrent committed Jul 29, 2011
1 parent 46db370 commit 4a95344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social-connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand Down

0 comments on commit 4a95344

Please sign in to comment.