您好,我正在编写 Facebook 应用程序,在这里我使用 Post 对象发布 Friends Wall 的消息,我也可以发布,
但我的问题是在单击我提供的文本(希望....)时我也获得了图像链接,如下面的屏幕截图所示
所以在这里我需要一点帮助,我怎样才能删除这个链接...
我已经在 Strings.xml 中给出了这条短信:
<string name="app_action">Wishing you a birthday as special as you are! Hope this is a new beginning to lots of great things and happy moments in your life. Wish you a fabulous birthday!</string>
图片链接:
public static final String HACK_ICON_URL = "http://i1.pickupflowers.com/images/puf/images/product/large/carnations-lilies-and-roses.jpg";
我的代码:
Bundle params = new Bundle();
params.putString("method", "fql.query");
params.putString("query", query);
FacebookUtility.asyncRunner.request(null, params, new FacebookRequestListener(FacebookRequestListener.FRIENDS, facebookRequest));
最佳答案
可能是您没有正确设置帖子参数。请参阅我为此使用的代码:
Bundle postParams = new Bundle();
postParams.putString("name", getString(R.string.fbPostName));
postParams.putString("caption", getString(R.string.fbPostCaption));
postParams.putString("description", getString(R.string.fbPostDescription).replace("(Venue)",venueName ));
postParams.putString("link", getString(R.string.fbPostLink));
postParams.putString("picture", getString(R.string.fbPostPicture));
最后两行代码分别为图片和链接设置链接。
关于android - Android 中的 Facebook 发布对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15151306/