我们可以在多个用户的Facebook墙上同时发布 [英] can we post on multiple user's Facebook wall at same time

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

问题描述

您好,我在这个应用程序中使用Facebook sdk开发一个Android应用程序,我想同时在多个Facebook朋友的墙壁上发布一些消息,我的意思是用户只需选择他的Facebook朋友,并输入他想要发布的消息,然后点击发送按钮。是否可以做?

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.

为了使帖子使用 请求 href =http://developers.facebook.com/docs/reference/androidsdk/request/ =nofollow noreferrer> Facebook对象 AsyncFacebookRunner对象(稍后更好)。

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

您还可以使用<一个href =http://developers.facebook.com/docs/reference/api/batch/ =nofollow noreferrer>批量请求使一个请求中的所有帖子,我从来没有尝试过它是从android应用程序,但由于它是基于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.

唯一的问题是您需要为朋友选择因为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天全站免登陆