【发布时间】:2012-04-28 09:13:46
【问题描述】:
我想在墙上发布一条消息,但不弹出对话框 我试过了
parameters.putString("description", "test test test")
response = mFacebook.request("me/feed", parameters, "feed");
或者
response = mFacebook.request("me/feed", parameters, "stream.publish");
我得到一个错误
Got response: `{"error":{"message":"Unsupported method, feed","type":"Exception"}}`
下面发布的代码是如何在没有 dailog 的情况下在墙上发布消息 为了解决这个问题,您需要在创建 facebook 对象时添加权限 见下文
*最终字符串 FACEBOOK_PERMISSION = "publish_stream"; mPermissions = new String[]{FACEBOOK_PERMISSION};*
【问题讨论】: