Android:Facebook API 发帖
我正在使用 Faccebook android API (com.facebook.android) 在 facebook 上发布消息。 <代码> Facebook mFacebook = new Facebook(Constants.APP_ID); AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(mFacebook); 捆绑包参数 = new Bundle(); parameters.putString("message", "this is a test post");// 要发布到墙上的消息 mFacebook.dialog(this, "stream.publish", 参数, new SampleDialogListener()); 一切
工作正常。我可以登录并发布消息,但登录后,它会显示一个中间对话框,“发布故事”,其中包含一个文本框,其中包含我的帖子消息,“这是一个测试帖子”,可由用户编辑,但是我想在登录后立即发布消息,而无需中间的发布屏幕。
任何人都可以帮助我如何实现这一目标。
谢谢, 尼哈塔
I am using Faccebook android API (com.facebook.android) to post the messages on 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());
Everything is working fine. I'm able to login and post the message, but after login, it is displaying a intermediate dialog, "Publish story" with a text box with my post msg, "this is a test post" that is editable by the user, but i want to post the messages immediately after login without having this intermediate post screen.
Can anybody help me how to achieve this.
Thanks,
nehatha
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以这样做:
This is how you do it: