private void FBcheckin(String placeID,String Get_message) {
try {
Bundle params = new Bundle();
params.putString("access_token",FB_access_token);
params.putString("place", placeID);
params.putString("message",Get_message);
params.putString("application","打卡");
JSONObject coordinates = new JSONObject();
coordinates.put("latitude", LocationConsts.mMyLocationLat);
coordinates.put("longitude", LocationConsts.mMyLocationLon);
params.putString("coordinates",coordinates.toString());
JSONArray frnd_data=new JSONArray();
params.putString("tags", "");
String response1 = FacebookRequire.request("me/checkins", params, "POST");
Log.i("response1",response1);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
- Feb 26 Sun 2012 00:31
[Android]FB打卡
close
文章標籤
全站熱搜
留言列表