我张贴消息和图像给Facebook壁利用图api.Here改变是我用发布图像尺寸,同时使用的Facebook图形API
if(i==1){
String res= UrltoValue.getValuefromUrl("https://graph.facebook.com/"+Login.facebookid+"/feed?access_token="+accesstoken+"&method="+"post"+"&message="+strFullMessage.replaceAll(" ", "%20")+"&source="+imageUrl);
Log.e("post response",res);
if(res.contains("id")){
Toast.makeText(getApplicationContext(), "successfully posted", Toast.LENGTH_SHORT).show();
}
两个消息和图像被成功地发布的代码,但图像大小是缩略图。我使用“源”和“图片”参数,但结果是一样的。
我从我的本地数据库中获取这些图像。 我检查了该Url的图像大小,它是240 * 320的大小,但它在我的脸书中以小尺寸显示。
的图像被显示在固定的大小? String res = \t UrltoValue.getValuefromUrl(“https://graph.facebook.com/”+ Login.facebookid +“/ feed?access_token =”+ accesstoken +“&method =”+“post”+“&message =”+ strFullMessage.replaceAll (“”,“%20”)+“&source =”+ imageUrl); – user1891910