Getting User Objects

Prerequisite

Get Current User

It is not possible to obtain the instance of a current user object, but SDK provides methods to read and update user properties via GetSocialUser class.

More information:

Get a Public User Profile

On iOS public user profile is represented by GetSocialPublicUser class. Object is read-only and provide access to name, avatar url, list of identities and public properties.

The easiest way to get instance of GetSocialPublicUser is by GetSocial User Id:

1
2
3
4
5
[GetSocial userWithId:@"GetSocial User Id" success:^(GetSocialPublicUser * _Nonnull publicUser) {
    // process user data
} failure:^(NSError * _Nonnull error) {
    // Ooops. There was some error while getting other user details.
}];

Next Steps

Give us your feedback! Was this article helpful?

😀 🙁