can we post on multiple user's Facebook wall at same time

帅比萌擦擦* 提交于 2019-12-13 03:33:17

问题


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?


回答1:


It is indeed possible.

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.

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

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.

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.



来源:https://stackoverflow.com/questions/10222533/can-we-post-on-multiple-users-facebook-wall-at-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!