ListGameFriendsRequest.Send not passing response object to my callback
R
Rich Joslin
started a topic
about 7 years ago
I'm going through this tutorial: https://docs.gamesparks.net/tutorials/unity-tutorials-challenges-part-4-facebook-friend-manager
My call to ListGameFriendsRequest is successful, and GS logs that I did get back a list of 3 people, as expected. But then, in my response object passed into my callback is empty. I've attached the log, which shows first what GS logs automatically, and then an empty object when I log the response object in the callback. Am I doing something wrong?
Turns out one of my problems was that the response is not serializable, therefore I was unable to debug it by dumping it to a json string. Something to keep in mind. You all might already know that, but I'm new here. ;-) The other problem was that the gameobjects I was creating were getting hidden (my bad).
Turns out one of my problems was that the response is not serializable, therefore I was unable to debug it by dumping it to a json string. Something to keep in mind. You all might already know that, but I'm new here. ;-) The other problem was that the gameobjects I was creating were getting hidden (my bad).
Customer Support
said
about 7 years ago
Hey Rich,
Does this mean you've sorted out this problem?
Sean
R
Rich Joslin
said
about 7 years ago
Yes, it's sorted. The function was working fine all along.
Rich Joslin
I'm going through this tutorial: https://docs.gamesparks.net/tutorials/unity-tutorials-challenges-part-4-facebook-friend-manager
My call to ListGameFriendsRequest is successful, and GS logs that I did get back a list of 3 people, as expected. But then, in my response object passed into my callback is empty. I've attached the log, which shows first what GS logs automatically, and then an empty object when I log the response object in the callback. Am I doing something wrong?
Turns out one of my problems was that the response is not serializable, therefore I was unable to debug it by dumping it to a json string. Something to keep in mind. You all might already know that, but I'm new here. ;-) The other problem was that the gameobjects I was creating were getting hidden (my bad).
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstRich Joslin
Turns out one of my problems was that the response is not serializable, therefore I was unable to debug it by dumping it to a json string. Something to keep in mind. You all might already know that, but I'm new here. ;-) The other problem was that the gameobjects I was creating were getting hidden (my bad).
Customer Support
Does this mean you've sorted out this problem?
Sean
Rich Joslin
Yes, it's sorted. The function was working fine all along.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics