Reputation: 631
I would like to create an application on android which implement checkin feature. I read api reference for facebook api several times already and basically I am clueless. I understand that simply I do need to issue a POST request to facebook graph api server like this one:
curl -F 'access_token=...' \
-F 'message=The coffee is just meh.' \
-F 'place=PAGE_ID' \
-F 'coordinates={"latitude":"...", "longitude": "..."}' \
-F 'tags=USER_ID1, USER_ID2' \
https://graph.facebook.com/me/checkins
However I have no idea how to get those place[page_id] or coordinates[long and lat]. Question is if I have a name of place I want to check in, how could i search for its place[page_id] and how to get those coordinates?
Upvotes: 0
Views: 3408
Reputation: 11107
For checkins you check this links for your references
If you want to get the Checkins of Particular user just use this API
https://graph.facebook.com/[user id]/checkins
in these just pass the USERID of the User.
If you want to get the Latest checkins of particular user use this API
https://graph.facebook.com/search?type=checkin&access_token=ACCESS_TOKEN
in these get your access token and pass it..
3 . If you are having Latitude and Longitude you can get the Nearest Locations by using this API
https://graph.facebook.com/search?type=place¢er="+latitude+","+longitude+"& distance=5000&
Upvotes: 1