我们可以张贴在多用户的Facebook墙在同一时间 [英] can we post on multiple user's Facebook wall at same time

查看:117
本文介绍了我们可以张贴在多用户的Facebook墙在同一时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜IM开发使用Facebook的SDK在这个程序,我想张贴在同一时间多个Facebook上的朋友墙上的一些消息我的意思是用户只需要选择自己的Facebook好友,然后输入他想发布并点击发送按钮消息的Andr​​oid应用程序。是有可能这样做?

Hi im developing an android app using facebook sdk in this app i want to post some message on multiple facebook friends wall at same time i mean user just select his facebook friends and enter message that he want to post and hit send button .is it possible to do?

推荐答案

这的确是可能的。

在为了做到这一点但你必须要求用户授予您的应用程序的的 publish_stream 权限。
一旦你有,你可以张贴在代表他。

In order to do that though you'll have to ask the user to grant your app the "publish_stream" permission. Once you have that you can post on his behalf.

要真正使岗位使用的要求的的的 Facebook的对象 AsyncFacebookRunner对象(后来为preferable)。

To actually make the posts use the request method of the Facebook object or AsyncFacebookRunner object (the later is preferable).

您也可以使用批量请求,以使在一个所有的职位的要求,我从来没有尝试过的Andr​​oid应用程序,但因为它是基于HTTP请求(如整个API)应该是可能的,例如,你可以看看这个主题: Android的Facebook的图形API批次

You can also use Batch Requests to make all the posts in one request, I've never tried it from android app, but since it's based on http request (like the entire api) it should be possible, you can for example check out this thread: Android facebook graph batch api.

唯一的问题是,你需要为朋友挑选自己的UI,因为有一个在SDK中没有对话,处理这种功能。

The only issue is that you'll need to create the UI for the friends selection yourself since there's no dialog in the sdk that handles this kind of functionality.

这篇关于我们可以张贴在多用户的Facebook墙在同一时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆