Search code examples
androidfacebookfacebook-graph-apiandroid-4.2-jelly-beanfacebook-checkins

how to checkin a place in facebook sdk 3 Android


I want to check in a place using Facebook sdk 3.And it should be post in wall as a check in .I have the place id .does any one have idea how to do it and any code >>


Solution

  • Bundle data = new Bundle();
    data.putString("access_token", "YOUR ACCESS TOKEN");
    data.putString("place", "your_place_id");  
    data.putString("message","Your Text here");
    JSONObject coordinates = new JSONObject();
    coordinates.put("latitude", "LATITUDE");
    coordinates.put("longitude", "LONGITUDE");
    data.putString("coordinates",coordinates.toString());
    data.putString("tags", "user_id");
    String response = faceBook.request("me/checkins", data, "POST");