facebook feed url +或不接受空白区域

时间:2015-08-03 11:30:13

标签: facebook facebook-graph-api

您好我正在使用facebook feed url,如下所示

            int httpResult = urlConnection.getResponseCode();
            if (httpResult != HttpURLConnection.HTTP_OK) {
                Log.e(TAG, urlConnection.getResponseMessage());
            }

这很好但是我有

https://www.facebook.com/dialog/feed?app_id=1580821915509011&display=popup&redirect_uri=http://www.xxxx.com/closewindow&name=test&link=http://www.xxxcom&picture=http://bucket.s3.amazonaws.com/photos/processed/c2b88b7abc1256808c53cd7b7334d3d3/StreamPhotos/893115e2f8a68801c93cebaf103a6f8e.jpeg+&properties=&actions=

picture=http://bucket.s3.amazonaws.com/photos/processed/c2b88b7abc1256808c53cd7b7334d3d3/**Stream+Photos**/893115e2f8a68801c93cebaf103a6f8e.jpeg

Facebook网址无法获取图片如何解决此问题?

1 个答案:

答案 0 :(得分:0)

你接近使用space-to-plusses编码 - 但是你需要对字符串进行URI转义。您最终应将空格设为%20。这就是Facebook正在寻找的东西!