This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) searchForPlaces { | |
ACAccountStore *store = [[ACAccountStore alloc] init]; | |
ACAccountType *type = [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; | |
NSArray *permissions = @[@"email"]; | |
NSDictionary *options = @{ ACFacebookAppIdKey : @"229934313842253", ACFacebookPermissionsKey : permissions, ACFacebookAudienceKey : ACFacebookAudienceOnlyMe }; | |
[store requestAccessToAccountsWithType:type options:options completion:^(BOOL granted, NSError *error) { | |
NSArray *accounts = [store accountsWithAccountType:type]; | |