删除Facebook的使用Facebook的图形API发布的消息? (Android设备) [英] Delete a Facebook posted messages by using the Facebook GRAPH API? (For Android)

查看:180
本文介绍了删除Facebook的使用Facebook的图形API发布的消息? (Android设备)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我卡在使用Facebook的图形API,这是为Android删除Facebook涂鸦墙帖子。

I'm stuck on delete a Facebook wall posts by using Facebook GRAPH API, which is for android.

http://developers.facebook.com/docs/reference/api/post /

以上网站就是我使用了删除的部分。

The above site is which i use for the delete part.

我把方法为参数,并通过重写HTTP方法删除。

and I put method into param and override delete through http method.

我要求publish_stream,read_stream,user_photos,电子邮件Facebook登录时获得的权限。

I request the publish_stream, read_stream, user_photos, email during Facebook login to get a permission.

private void deleteStatus() {
    try {
        String id = "100003613093757_108952429235193"; // I put another ID               //for test. 
        Bundle param = new Bundle();
        param.putString("method", "delete");
        BasicInfo.FacebookInstance.request(id, param, "POST");
    } catch (Exception ex) {
        ex.printStackTrace();
    }
}

问题是,这只是出来假。这是当我实现方法,它是要求在Chrome地址,通过logcat的。

The problem is, this only comes out with false. This is when I implement the method, which is requested address in chrome, through the Logcat.

推荐答案

您只能删除您的应用程序创建的Facebook状态。如果用户使用不同的应用或Facebook的网站上发的帖子,你无法通过Facebook的API您的应用程序中删除。

You can only delete Facebook statuses that your app created. If the user made the post with a different app or on Facebook's website, you can not delete it with your app via the Facebook API.

这篇关于删除Facebook的使用Facebook的图形API发布的消息? (Android设备)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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