0

为什么我的日食向我显示这个错误?我正在尝试为 android 实现 facebook APi,但它给了我上述错误,为什么?

他们在文档中提到将其放置以进行注销。这是代码。

String method = "DELETE";
Bundle params = new Bundle();
/*
* this will revoke 'publish_stream' permission
* Note: If you don't specify a permission then this will de-authorize the application completely.
*/
params.putString("permission", "publish_stream");
mAsyncRunner.request("/me/permissions", params, method, new RevokePermissionListener(), null);

onComplete我把它放在mAsyncRunner.logout

4

1 回答 1

0

您必须创建RevokePermissionListener实现的类AsyncFacebookRunner.RequestListener()。在同一文件中,添加以下代码:

public class RevokePermissionListener implements AsyncFacebookRunner.RequestListener {

    @Override
    public void onComplete(String response, Object state) {
        // TODO Auto-generated method stub

    }

    @Override
    public void onIOException(IOException e, Object state) {
        // TODO Auto-generated method stub

    }

    @Override
    public void onFileNotFoundException(FileNotFoundException e, Object state) {
        // TODO Auto-generated method stub

    }

    @Override
    public void onMalformedURLException(MalformedURLException e, Object state) {
        // TODO Auto-generated method stub

    }

    @Override
    public void onFacebookError(FacebookError e, Object state) {
        // TODO Auto-generated method stub

    }

}
于 2012-09-07T18:04:58.113 回答