- Timestamp:
- Jan 9, 2014, 6:11:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/include/hybridauth/Hybrid/Providers/Facebook.php
r20293 r26555 31 31 require_once Hybrid_Auth::$config["path_libraries"] . "Facebook/facebook.php"; 32 32 } 33 34 if ( isset ( Hybrid_Auth::$config["proxy"] ) ) { 35 BaseFacebook::$CURL_OPTS[CURLOPT_PROXY] = Hybrid_Auth::$config["proxy"]; 36 } 33 37 34 38 $this->api = new Facebook( ARRAY( 'appId' => $this->config["keys"]["id"], 'secret' => $this->config["keys"]["secret"] ) ); … … 128 132 $this->user->profile->firstName = (array_key_exists('first_name',$data))?$data['first_name']:""; 129 133 $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"; 131 135 $this->user->profile->profileURL = (array_key_exists('link',$data))?$data['link']:""; 132 136 $this->user->profile->webSiteURL = (array_key_exists('website',$data))?$data['website']:""; … … 172 176 $uc->displayName = (array_key_exists("name",$item))?$item["name"]:""; 173 177 $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"; 175 179 176 180 $contacts[] = $uc;
Note: See TracChangeset
for help on using the changeset viewer.