* Summary my code:
- First i create user with UserService.
- On success method (from callback of create user)
+ Get session id from response and save to local.
+ Log session id from "App42API.userSessionId"
+ Call LinkUserFacebookAccount.
- On succes method (from callback of link Facebook)
+ Log session id from "App42API.userSessionId"
* My log:
POST URI : https://api.shephertz.com/cloud/1.0/user?
Waiting For Response...
Success Value : {"app42":{"response":{"success":true,"users":{"user":{"userName":"601953716632246","email":"copang_ng@yahoo.com","createdOn":"2016-07-21T07:29:38.933Z","sessionId":"4251bdb3-e8ee-4959-82c4-e03c3a329cef"}}}}}
buildResponseForObjectService resource: user
Session id before link Facebook: 4251bdb3-e8ee-4959-82c4-e03c3a329cef
POST URI : https://api.shephertz.com/cloud/1.0/social/facebook/linkuser/accesscredentials?
Waiting For Response...
Success Value : {some value from facebook profile like first name, last name, ...}
buildResponseForObjectService resource: social
Session id after link Facebook: (empty string, so it was deleted?)