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

查看:80
本文介绍了我们可以同时发布在多个用户的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?

推荐答案

这确实是可能的.

为此,尽管您必须要求用户向您的应用授予"

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.

要实际制作帖子,请使用request 方法> Facebook对象 AsyncFacebookRunner对象(后面是最好).

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

您还可以使用批量请求在以下位置发布所有帖子:一个请求,我从未在android应用程序中尝试过,但是由于它基于http请求(例如整个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中没有处理此类功能的对话框,因此您需要为自己选择的朋友创建UI.

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天全站免登陆