Example #1
0
 public function getConnectedAccounts($info = NULL)
 {
     $items = parent::getConnectedAccounts($info);
     if (empty($info)) {
         $info = $this->getUserInfo();
     }
     $accounts = $this->getAllAccountInfo()->get('data');
     foreach ($accounts as $key => $account) {
         $item = array('account_id' => $account[$this->getConfig('param_user_id')], 'account_label' => $account[$this->getConfig('param_user_label')], 'account_type' => 'page', 'access_token' => array('access_token' => $account['access_token']), 'expires' => 0);
         $items[] = $item;
     }
     return $items;
 }