Forum Discussion
JeffNik
8 years agoMVP
GetLoggedInUserFriends succeeding, but returning an empty UserList
I'm developing in the latest (released) version of Unity and the latest Oculus Integration package or the Rift.
In my awake function, I Initialize() the platform core, do an entitlement check, get the logged in user and assign the ID to the avatar user id member to download my custom avatar. All callbacks are called and the returned messages contain IsError = false
When I run the app in the editor, and the user presses escape, the code calls GetLoggedInUserFriends. Again, the callback is executed, the returned message IsError flag is false, but the Data member is an empty list (length = 0). I have about 15 friends on my Oculus account.
I'm just trying to get a list of my friends to see how the API works. Do my friends have to be logged in to be included in the result? Can anyone think of anything I have missed?
In my awake function, I Initialize() the platform core, do an entitlement check, get the logged in user and assign the ID to the avatar user id member to download my custom avatar. All callbacks are called and the returned messages contain IsError = false
When I run the app in the editor, and the user presses escape, the code calls GetLoggedInUserFriends. Again, the callback is executed, the returned message IsError flag is false, but the Data member is an empty list (length = 0). I have about 15 friends on my Oculus account.
I'm just trying to get a list of my friends to see how the API works. Do my friends have to be logged in to be included in the result? Can anyone think of anything I have missed?
1 Reply
Replies have been turned off for this discussion
- Think I figured it out. Apparently, the GetLoggedInUserFriends function only returns the logged in user's friends who also own the app in question.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago