I could check in with the older Facebook SDK used this code:
Facebook fb = new Facebook("APP ID");
Bundle params = new Bundle();
params.putString("access_token", "TOKEN");
params.putString("place", "PLACE ID");
params.putString("message","SOMETHING MESSAGE");
JSONObject coordinates = new JSONObject();
coordinates.put("latitude", "LATITUDE");
coordinates.put("longitude", "LONGITUDE");
params.putString("coordinates",coordinates.toString());
params.putString("tags", "USER ID");
String response = fb.request("me/checkins", params, "POST");
But the fb = new Facebook()
and the fb.request()
functions are deprecated in new 3.0 Facebook SDK! What can I replace them with? How can I check in with using the 3.0 Facebook SDK?
The Graph API need "publish_checkins" extended permission in Facebook app, but this permission is deprecated also.