下面的代码正在生成上述错误。提取电子邮件地址的更好方法是什么?
// process the response here: executed in background thread
Log.d("Facebook-Example", "Response: " + response.toString());
JSONObject json;
try {
json = Util.parseJson(response);
fbemail = json.getString("email");
} catch (FacebookError e) {
// TODO Auto-generated catch block
e.printStackTrace();
}