Update User Information

You can update username and profile image URL.

// manually set profile image URL
[[TalkPlus sharedInstance] updateUserProfile:username 
    profileImageUrl:profileImageUrl 
    metaData:metaData 
    success:^(TPUser *tpUser) {
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];

// uploadi profile image file
[[TalkPlus sharedInstance] updateUserProfile:username 
    profileImage:profileImage 
    metaData:metaData 
    success:^(TPUser *tpUser) {
    // SUCCESS
} failure:^(int errorCode, NSError *error) {
    // FAILURE
}];

Last updated