function prepare($args)
 {
     parent::prepare($args);
     $this->oauth_token = $this->arg('oauth_token');
     $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1;
     return true;
 }
 function prepare($args)
 {
     parent::prepare($args);
     $this->id = (int) $this->arg('id');
     $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1;
     return true;
 }
 /**
  * For initializing members of the class.
  *
  * @param array $argarray misc. arguments
  *
  * @return boolean true
  */
 function prepare($args)
 {
     parent::prepare($args);
     $this->facebook = new Facebook(array('appId' => common_config('facebook', 'appid'), 'secret' => common_config('facebook', 'secret'), 'cookie' => true));
     $this->user = common_current_user();
     $this->flink = Foreign_link::getByUserID($this->user->id, FACEBOOK_SERVICE);
     return true;
 }
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('sms');
 }