How to detect when user delete the app from Facebook

假装没事ソ 提交于 2019-12-01 21:04:09

Try this:

[FBSession renewSystemCredentials:^(ACAccountCredentialRenewResult result, NSError *error) {
    if (!error) {
        if (result == ACAccountCredentialRenewResultRejected) {
            NSLog(@"Facebook app deleted");
        }
    }
    else {
        NSLog(@"Error: %@", error);
    }
}];

http://developers.facebook.com/docs/authentication/#app-deauthorization

App Deauthorization

When a user of your app removes it in the App Dashboard or blocks the app in the News Feed, your app can be notified by specifying a Deauthorize Callback URL in the Developer App. During app removal we will send an HTTP POST request containing a single parameter, signed_request, which contains the user id (UID) of the user that just removed your app. You will not receive an user access token in this request and all existing user access tokens will be automatically expired.

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