Skip to main content
JeffNik
Honored Contributor
October 4, 2018

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? 

    This topic has been closed for replies.

    1 reply

    JeffNik
    JeffNikAuthor
    Honored Contributor
    October 4, 2018
    Think I figured it out. Apparently, the GetLoggedInUserFriends function only returns the logged in user's friends who also own the app in question.