How to detect when user delete the app from Facebook

前端 未结 2 1896
眼角桃花
眼角桃花 2021-01-19 16:53

I\'m new to using the Facebook SDK and I wondered how detect when the user deletes the app from his Facebook account. Currently if we delete the app, and we want to post som

2条回答
  •  难免孤独
    2021-01-19 17:39

    Try this:

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

提交回复
热议问题