Welcome
Login
Sign up
Home
Solutions
Forums
How can we help you today?
Enter your search term here...
Search
Login
or
Signup
to submit a new ticket
Check ticket status
Start a new topic
Discussions
Kinvey Forums
iOS
[KCSUser activeUser].userId is nil after loggin in with Facebook identity
N
Neto Leal
started a topic
over 7 years ago
Guys, when I perform a login with my facebook identity, my active user is coming with no userId defined.
(lldb) po [KCSUser activeUser]
KCSUser: {
email = "netoleal.br@gmail.com";
"given name" = "Neto Leal";
username = lealneto;
}
(lldb) po [KCSUser activeUser].userId
nil
Ideas on what is going on?
thanks!
3 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
N
Neto Leal
said
over 7 years ago
Now, I destroyed my user to start over and I can't log in with facebook identity
FBAccessTokenData *tokenData = facebookSession.accessTokenData;
NSString *token = [tokenData description];
NSLog(@"facebook token: %@", token);
[KCSUser loginWithSocialIdentity:KCSSocialIDFacebook accessDictionary:@{KCSUserAccessTokenKey: token} withCompletionBlock:^(KCSUser *user, NSError *errorOrNil, KCSUserActionResult result) {
NSLog(@"%@", user);
}];
output:
2013-11-11 15:50:53.715 LigaApp[16509:70b] facebook token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
M
Mike
said
over 7 years ago
What does the error message say?
N
Neto Leal
said
over 7 years ago
Michael, there were an error in my collection hook for users that wasn't visible. Now it's fixed.
Thanks
Login
or
Signup
to post a comment
More topics in
iOS
Why do I get "Undefined symbols" errors when building with KinveyKit?
How do I register push tokens?
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
How can I assign additional properties to users?
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
Authorization Token Invalid or Expired
BOOL and how it is stored in the database.
Offline saving throwing errors
Custom endpoint not able to form request object
Security through business logic
See all 437 topics
Neto Leal
(lldb) po [KCSUser activeUser]
KCSUser: {
email = "netoleal.br@gmail.com";
"given name" = "Neto Leal";
username = lealneto;
}
(lldb) po [KCSUser activeUser].userId
nil
Ideas on what is going on?
thanks!