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);
可以显示标题,名称,描述字段,但图片没有,有谁知道?
答案 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";