如何删除从我的Android应用程序Facebook的帖子? [英] How can I delete a Facebook post from my Android app?
问题描述
我如何删除我的Android应用程序Facebook发布,使用Facebook的Android SDK中?
How can I delete a Facebook post from my Android application, using the Facebook Android SDK?
推荐答案
您可以删除帖子,如果你的应用程序创建的帖子。从帖子文档
You can delete a Post if your application created the post. Quoting from Post documentation
您可以删除帖子,只要你的应用程序创建的帖子。您可以通过发出HTTP DELETE请求POST_ID对象,publish_stream权限删除帖子。
You can delete a post as long as your application created the post. You delete a post by issuing an HTTP DELETE request to the POST_ID object with publish_stream permission.
如果删除成功,您将获得布尔
有关成功返回。而且只要你想在Android上执行相同的,你会被要求使用的 请求方法
并通过列举HTTPMethod
为删除
删除帖子
If the delete is successful, you will get Boolean
return about the success. And as you want to perform the same on Android you will be required to use Request method
and pass HttpMethod
as DELETE
to delete the post
这篇关于如何删除从我的Android应用程序Facebook的帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!