Skip to content

Commit

Permalink
use protocol relative url to get facebook avatar (props scibi)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo committed Dec 12, 2014
1 parent 63e2daa commit db6dcc3
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 @@ -343,7 +343,7 @@ function sc_filter_avatar($avatar, $id_or_email, $size, $default, $alt) {
else if($size <= 50)
$size_label = 'small';

$custom_avatar = "http://graph.facebook.com/$social_id/picture?type=$size_label";
$custom_avatar = "//graph.facebook.com/$social_id/picture?type=$size_label";
break;
case 'twitter':
// bigger - 73px by 73px
Expand Down

0 comments on commit db6dcc3

Please sign in to comment.