iOS requestAccessToAccountsWithType is Not Showing Permission Prompt / NSAlert

前端 未结 2 1587
忘掉有多难
忘掉有多难 2021-01-19 17:27

It is my understanding that when I invoke [ACAccountStore requestAccessToAccountsWithType:options:completion], the user is supposed to see an UIAlert that asks

2条回答
  •  不思量自难忘°
    2021-01-19 17:54

    You have inverted objects and keys in your options dictionary :

    NSDictionary *options = [[NSDictionary alloc] initWithObjectsAndKeys:
                             @"##########",  ACFacebookAppIdKey,
                             [NSArray arrayWithObject:@"email"], ACFacebookPermissionsKey,
                             nil];
    

提交回复
热议问题