Android中的Facebook帖子对象

时间:2013-03-01 05:42:36

标签: android facebook facebook-graph-api

您好我正在写Facebook应用程序,在这里我使用Post Object发布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>

enter image description here

ImageLink的:

  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));

1 个答案:

答案 0 :(得分:0)

可能是您没有正确设置帖子参数。请参阅我用于此的代码:

 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));

最后两行代码正在设置图片和链接的链接。