我在这里尝试了多种解决方案,但似乎都没有效果。我在String imageJsonStr = sh2.makeServiceCall(imgUrl[i], ServiceHandler.GET);
收到错误
字符串中没有特殊字符,变量imageId
是仅包含'98546214265231'等数字的字符串
imgUrl[i] = "https://graph.facebook.com/v2.2/"
+ imageId
+ "?access_token="
+ static_token;
try {
try {
imgUrl[i] = URLEncoder.encode(imgUrl[i],"UTF-8");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String imageJsonStr = sh2.makeServiceCall(
imgUrl[i], ServiceHandler.GET);