0
URLにアクセスしているときにjava.net.unknownhostexceptionを取得していますが、ブラウザからアクセスできます。graph.facebook.comにアクセス中に不明なホスト例外
public static void main(String[] args) throws IOException, JSONException`enter code here`
{
JSONObject json = readJsonFromUrl("https://graph.facebook.com/page_id/?
access_token=xxxxx&fields=name,likes,posts");
System.out.println(json.toString());
System.out.println(json.get("likes"));
}