Thứ Bảy, 14 tháng 12, 2013

download feed from facebook

String url = "https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=&client_secret="; String id = "341807892536730";//user id Document doc = CronJobUtil.downloadHtml(url); String token = doc.select("body").html(); logger.info(token); url = "https://graph.facebook.com/" + id + "/feed?" + token; logger.info(url); //http://graph.facebook.com/{ID of object}/picture JSONObject json = CronJobUtil.downloadJSON(url); logger.info(json.toString());

Không có nhận xét nào:

Đăng nhận xét