Session id was deleted after call social method

0 votes
Hello, After create user i got session id and loggedInUser (call from App42API) and next time when open app i still get them from App42API. But when i call some method (social features) like linkUserFacebookAccount, getFacebookFriendsFromAccessToken, ... then next time i open app both session id & loggedInUser was cleared. Please help me solve this problem, thanks!
asked Aug 12, 2016 in Unity by copangtnc (45 points)

1 Answer

0 votes
Hi Copangtnc,

 

Greetings for the day!

 

Yes, you are right it is because of when you call linkUserFacebookAccount method, it will be called as a social user for us. So if you need to get loggedInUser value, then in the success of linkFacebook method, you have to call the below function:

App42API.setLoggedInUser("UserName");

Please let us know if you need any other help from our side.

 

Regards,

Himanshu Sharma
answered Aug 12, 2016 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...