Esempio n. 1
0
 public function saveFeed($feed, $action = '')
 {
     $networkSocialMedia = new SJB_FacebookSocialMedia();
     $accessToken = $networkSocialMedia->getAccessToken();
     $user = $networkSocialMedia->getAccountInfo($feed->getSID());
     $accountName = !empty($user['account_name']) ? $user['account_name'] : '';
     $feed->addProperty(array('id' => 'access_token', 'type' => 'text', 'value' => $accessToken, 'is_system' => true));
     $feed->addProperty(array('id' => 'account_name', 'type' => 'text', 'value' => $accountName, 'is_system' => true));
     $feed->addProperty(array('id' => 'expiration_date', 'type' => 'date', 'value' => SJB_I18N::getInstance()->getDate(date('Y-m-d', time() + 60 * 24 * 60 * 60)), 'is_system' => true));
     parent::saveFeed($feed);
 }
Esempio n. 2
0
 /**
  * @param SJB_LinkedInSocial $feed
  * @param string $action
  */
 public function saveFeed($feed, $action = '')
 {
     parent::saveFeed($feed);
     $linkedInSocialMedia = new SJB_LinkedInSocialMedia();
     $linkedInSocialMedia->saveAccountInfo($feed->getSID(), $feed->getPropertyValue('account_id'));
 }
Esempio n. 3
0
 public function saveFeed($feed, $action = '')
 {
     parent::saveFeed($feed);
 }