Skip to content

Commit

Permalink
Tweak for facebook event posting [#1061]
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Aug 3, 2013
1 parent 8de531b commit e97617e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/modules/facebook/controllers/facebookController.php
Expand Up @@ -147,15 +147,15 @@ public static function postEvent($params=array()) {
"name"=>$eventdate->event->title,
"description"=>expString::summarize($eventdate->event->body) . ' ' . expCore::makeLink(array('controller'=>$params['orig_controller'], 'action'=>'show','date_id'=>$eventdate->id)),
"start_time"=>date('c',$eventdate->date + $eventdate->event->eventstart),
"end_time"=>date('c',$eventdate->date + $eventdate->event->eventend),
// "end_time"=>date('c',$eventdate->date + $eventdate->event->eventend),
// "location"=>$location,
// 'description' => $desc,
// 'picture'=>$pic,
// 'actions' => json_encode(array('name' => $action_name,'link' => $action_link))
);
$result = $facebook->api("/".$params['config']['facebook_page']."/events", "post", $attachment);
$facebookEventId = $result['id'];
$status = gt('New Facebook Event posted');
$status = gt('New Facebook Event posted') . ' - ' . $facebookEventId;
flash('message', $status);
} catch (FacebookApiException $e) {
// header("Location:{$facebook->getLoginUrl(array('scope' => 'photo_upload,user_status,publish_stream,user_photos,manage_pages,create_event'))}");
Expand Down

0 comments on commit e97617e

Please sign in to comment.