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); }
/** * @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')); }
public function saveFeed($feed, $action = '') { parent::saveFeed($feed); }