android - Android 中的 Facebook 发布对象

标签 android facebook facebook-graph-api

您好,我正在编写 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>

enter image description here

图片链接:

  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/

相关文章:

Facebook 社交插件评论计数

c# - 使用 Facebook API 编辑帖子返回 OAuthException #100

android - 在 Android 中向服务器发送位置更新

java - 安卓辅助搜索 : The search button does not invoke the searchable Activity (Other Solutions did not help)

android - 替换弃用的 GestureDetector 构造函数

iphone - Facebook Connect iPhone 自定义发布流

android.os.AsyncTask.THREAD_POOL_EXECUTOR

php - Facebook登录阻止了一个框架问题

javascript - 打印 JSON 数据?

android - 获取 Facebook 专辑封面照片 - Android