Ignore:
Timestamp:
Jan 9, 2014, 6:11:33 PM (10 years ago)
Author:
mistic100
Message:

update Hybridauth, update guides

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/include/hybridauth/Hybrid/Providers/Facebook.php

    r20293 r26555  
    3131                        require_once Hybrid_Auth::$config["path_libraries"] . "Facebook/facebook.php";
    3232                }
     33               
     34                if ( isset ( Hybrid_Auth::$config["proxy"] ) ) {
     35                        BaseFacebook::$CURL_OPTS[CURLOPT_PROXY] = Hybrid_Auth::$config["proxy"];
     36                }
    3337
    3438                $this->api = new Facebook( ARRAY( 'appId' => $this->config["keys"]["id"], 'secret' => $this->config["keys"]["secret"] ) );
     
    128132                $this->user->profile->firstName     = (array_key_exists('first_name',$data))?$data['first_name']:"";
    129133                $this->user->profile->lastName      = (array_key_exists('last_name',$data))?$data['last_name']:"";
    130                 $this->user->profile->photoURL      = "https://graph.facebook.com/" . $this->user->profile->identifier . "/picture?type=square";
     134                $this->user->profile->photoURL      = "https://graph.facebook.com/" . $this->user->profile->identifier . "/picture?width=150&height=150";
    131135                $this->user->profile->profileURL    = (array_key_exists('link',$data))?$data['link']:"";
    132136                $this->user->profile->webSiteURL    = (array_key_exists('website',$data))?$data['website']:"";
     
    172176                        $uc->displayName = (array_key_exists("name",$item))?$item["name"]:"";
    173177                        $uc->profileURL  = "https://www.facebook.com/profile.php?id=" . $uc->identifier;
    174                         $uc->photoURL    = "https://graph.facebook.com/" . $uc->identifier . "/picture?type=square";
     178                        $uc->photoURL    = "https://graph.facebook.com/" . $uc->identifier . "/picture?width=150&height=150";
    175179
    176180                        $contacts[] = $uc;
Note: See TracChangeset for help on using the changeset viewer.