Beispiel #1
0
 /**
  * Gets the avatar of the account.
  *
  * @return string
  */
 public function avatar()
 {
     if ($this->has_user()) {
         return $this->_user->profile_image_url;
     }
     return parent::_avatar();
 }
Beispiel #2
0
 /**
  * Gets the avatar of the account.
  *
  * @return string
  */
 public function avatar()
 {
     if ($this->has_user()) {
         return 'http://graph.facebook.com/' . $this->_user->id . '/picture';
     }
     return parent::_avatar();
 }
Beispiel #3
0
 /**
  * Gets the avatar of the account.
  *
  * @return string
  */
 public function avatar()
 {
     if ($this->has_user()) {
         // 2.0+ does not required a token for pictures, unlike almost every other call
         return 'https://graph.facebook.com/v2.3/' . $this->_user->id . '/picture';
     }
     return parent::_avatar();
 }