Skip to content
Browse files

debuging..

  • Loading branch information...
1 parent 24e7719 commit a891879802f7dbd29d067948bcbb4fb7464face4 BathTimeFish committed Mar 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/users_controller.php
View
4 app/controllers/users_controller.php
@@ -297,7 +297,7 @@ function api_checkin() {
$this->log('feed saved', LOG_DEBUG);
$data = array('checkin'=>array('success'=>true));
$pubmsg = $this->Auth->user('username').$pmsg;
- $this->Facebook->publish($this->Auth->user('username'), $pubmsg); // publish to Facebook
+ $this->Facebook->publish($this->Auth->user('id'), $pubmsg); // publish to Facebook
} else {
$data = array('checkin'=>array('success'=>false, 'message'=>'system error, feed data save failure'));
}
@@ -337,7 +337,7 @@ function api_checkout() {
if ($this->Feed->save($feed)) {
$data = array('checkout'=>array('success'=>true));
$pubmsg = $this->Auth->user('username').$pmsg.$this->data['message'];
- $this->Facebook->publish($this->Auth->user('username'), $pubmsg); // publish to Facebook
+ $this->Facebook->publish($this->Auth->user('id'), $pubmsg); // publish to Facebook
} else {
$data = array('checkout'=>array('success'=>false, 'message'=>'system error, feed data save failure'));
}

0 comments on commit a891879

Please sign in to comment.
Something went wrong with that request. Please try again.