public function FBSession::storePublication in Facebook Autopost 7
Private method to store the required publication info to get it back later when returning from Facebook authorization
Parameters
$publication: The publication array
$destination: The URI the user will be redirected after the publication
File
- class/
FBSession.php, line 22 - Handles session management for the Facebook Autopost module
Class
- FBSession
- Class implementation
Code
public function storePublication($publication, $destination = NULL) {
$_SESSION['fb_autopost_authorization_required'] = array(
'publication' => $publication,
'target' => 'me',
);
if ($destination) {
$_SESSION['fb_autopost_authorization_required']['destination'] = $destination;
}
else {
$_SESSION['fb_autopost_authorization_required'] += drupal_get_destination();
}
}