How to check-in on Facebook using the Facebook API
Was playing around with the Facebook API this evening and thought I’d share this little php code snippet that allows you to check-in to a place on Facebook via their php-sdk.
$facebook->api('/'.$uid.'/checkins', 'POST', array(
'access_token' => $facebook->getAccessToken(),
'place' => 'place_id',
'message' =>'I went to placename today',
'picture' => 'http://www.place.com/logo.jpg',
'coordinates' => json_encode(array(
'latitude' => 'lattiude',
'longitude' => 'lattitude',
'tags' => $uid),
)
)
