Elliot Theis

  • Random
  • Archive
  • RSS
  • Ask me anything

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),
)
)

    • #facebook
    • #api
    • #php
  • 9 months ago
  • 20
  • Permalink
  • Share
    Tweet

Portrait/Logo

About

I'm an entrepreneur, consultant, and rails developer who is keen to make his mark in the world.

Pages

  • About Me
  • CrunchBase
  • LinkedIn

Me, Elsewhere

  • @elliottheis on Twitter
  • elliottheis on Foursquare
  • My Skype Info
  • Linkedin Profile

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr