Note that there are some explanatory texts on larger screens.

plurals
  1. POGet facebook user details in ios 6 sdk?
    primarykey
    data
    text
    <p>How to retrieve facebook user details with ios 6 inbuilt facebook sdk? I tried few examples, but couldn't get work.</p> <pre><code>- (void) getFBDetails { if(!_accountStore) _accountStore = [[ACAccountStore alloc] init]; ACAccountType *facebookTypeAccount = [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; [_accountStore requestAccessToAccountsWithType:facebookTypeAccount options:@{ACFacebookAppIdKey: @"514284105262105", ACFacebookPermissionsKey: @[@"email"]} completion:^(BOOL granted, NSError *error) { if(granted){ NSArray *accounts = [_accountStore accountsWithAccountType:facebookTypeAccount]; _facebookAccount = [accounts lastObject]; NSLog(@"Success"); [self me]; }else{ // ouch NSLog(@"Fail"); NSLog(@"Error: %@", error); } }]; } - (void)me{ NSURL *meurl = [NSURL URLWithString:@"https://graph.facebook.com/me"]; SLRequest *merequest = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:meurl parameters:nil]; merequest.account = _facebookAccount; [merequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { NSString *meDataString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; NSLog(@"%@", meDataString); }]; </code></pre> <p>}</p> <p>But this fails to grab data from facebook. My app id is correct.</p> <p>This the error message I got</p> <pre><code>Error: Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: no stored remote_app_id for app" UserInfo=0x1d879c90 {NSLocalizedDescription=The Facebook server could not fulfill this access request: no stored remote_app_id for app} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload