我正在使用Faccebook android API (com.facebook.android)在facebook上发布消息。Facebook mFacebook = new Facebook(Constants.APP_ID); AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(mFacebook); Bundle parameters = new Bundle(); parameters.putString("message", "this is a test post");// the message to post to the wall mFacebook.dialog(this, "stream.publish", parameters, new SampleDialogListener());
一切都很正常。我可以登录并发布消息,但登录后,它会显示一个中间对话框“发布故事”,其中带有一个文本框,其中带有我的帖子消息"this is a test post“,该对话框可由用户编辑,但我希望在登录后立即发布消息,而不是显示此中间帖子屏幕。
有谁能帮我实现这一点吗?
谢谢,内哈塔
发布于 2012-05-23 20:24:12
这就是你怎么做的:
Bundle bundle = new Bundle(3);
bundle.putString("message", "Hello!");
mFacebook.request("me/feed", bundle, "POST");https://stackoverflow.com/questions/6086436
复制相似问题