在我的墙上发布图片,名称,图块,描述可以显示,但图片没有。为什么?

时间:2011-11-22 03:03:38

标签: android facebook-graph-api

-->
String url = "http://stg-cps-static.rovicorp.com/2/Open/Golf%20Channel/Big%20Break%20Ireland/Showcard/_derived_jpg_q90_250x250_m0/SC_BBIreland.jpg?partner=pumaDemoTune2";
Bundle params = new Bundle();
params.putString("caption", getString(R.string.app_name));
params.putString("description", getString(R.string.app_desc));
params.putString("picture", url);
params.putString("name", getString(R.string.app_action));
Utility.mAsyncRunner.request("me/feed", params, "POST", new listener(), null);
可以显示标题,名称,描述字段,但图片没有,有谁知道?

2 个答案:

答案 0 :(得分:1)

如果我错了,请纠正我,但似乎你的代码中有拼写错误。您是否直接从IDE复制并粘贴了它?

String url = "http://stg-cps-static.rovicorp.com/2/Open/Golf%20Channel/Big%20Break%20Ireland/Showcard/_derived_jpg_q90_250x250_m0/SC_BBIreland.jpg?partner=pumaDemoTune2"`

应该以a结尾;而不是`

String url = "http://stg-cps-static.rovicorp.com/2/Open/Golf%20Channel/Big%20Break%20Ireland/Showcard/_derived_jpg_q90_250x250_m0/SC_BBIreland.jpg?partner=pumaDemoTune2";

答案 1 :(得分:0)

如果其他人遇到同样的问题。 "图片"网址不应该被编码。

网址......

String url = "http://stg-cps-static.rovicorp.com/2/Open/Golf%20Channel/Big%20Break%20Ireland/Showcard/_derived_jpg_q90_250x250_m0/SC_BBIreland.jpg?partner=pumaDemoTune2";

应该是:

String url = "http://stg-cps-static.rovicorp.com/2/Open/Golf Channel/Big Break Ireland/Showcard/_derived_jpg_q90_250x250_m0/SC_BBIreland.jpg?partner=pumaDemoTune2";
相关问题
最新问题