Answer the question
In order to leave comments, you need to log in
How to get token in ios facebook sdk?
For several days I have been trying to implement authorization through Facebook in the application.
I can’t get the user’s access_token and, accordingly, his profile information (first name, last name, etc.).
Here is an example of a custom button code taken from the Facebook documentation:
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login
logInWithReadPermissions: @[@"public_profile"]
fromViewController:self
handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
NSLog(@"Result: %@", [result token]);
}];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question