Do you mean on the client or server side? In server code, you can use getIdentities() for the user object, which is always a parameter in server scripts. The properties for each vendor are distinguished as follows:
{ "facebook":{ "userId":"Facebook:my-actual-user-id", "accessToken":"the-actual-access-token" } }
And for Twitter:
{ "twitter":{ "userId":"Twitter:my-actual-user-id", "accessToken":"the-actual-access-token", "accessTokenSecret":"the-actual-access-token-secret" } }
Microsoft:
{ "microsoft":{ "userId":"MicrosoftAccount:my-actual-user-id", "accessToken":"the-actual-access-token" } }
Google:
{ "google":{ "userId":"Google:my-actual-user-id", "accessToken":"the-actual-access-token" } }
( Taken from Carlos Figueira excellent blog post , which is described in more detail)
On the client side, I did not use the IOS SDK, but in JavaScript it is client.currentUser.userId
source share