cancel
Showing results for 
Search instead for 
Did you mean: 

Getting user information via graph.oculus.com

Patskimoto
Honored Guest
Hi,

I am trying to authenticate users with my secure backend and I need to know how I can obtain their username and preferably their avatar image.

The following endpoint, which I call using the user's access token:

https://graph.oculus.com/{user_id} only returns the `org_scoped_id` and `id` values.

Is there a way to get more information about a user like the `ovr_User_Get()` function in the SDK does?



3 REPLIES 3

angularsen
Explorer
I would also very much like some documentation on what fields are available on the User node, as well as what other nodes exists and what their fields are.

The server-to-server docs are very much incomplete: https://developer.oculus.com/documentation/platform/latest/concepts/pgsg-s2s-basics/#features

For instance, I found inside some other docs that https://graph.oculus.com/[userid]?fields=avatar_v2{avatar_image{uri}},avatar{avatar_image{uri}} allows you to get the avatar URLs. I need the profile image though, no idea how to obtain that or if it is at all possible.

solaris.nite
Protege

+1. It would be great to have some actual S2S REST API documentation. An OpenAPI doc would be amazing but I would be happy with anything. It's very unclear what is available via the REST API.

 

We're currently trying to figure out if we can resolve the user org ID of all our existing users who we've only saved app-scoped IDs for up until this point. This wasn't a problem before because we were using an App Grouping but now that we're on AppLab, Rift, and Go, we needed to create a separate API service for AppLab since App Groupings aren't supported and we have no way to identify the same user between these databases. You might think we can just start sending the org ID when users log in with our backend but Go is deprecated so we can't update our client-side code to do this and it wouldn't resolve all of our existing users anyways.

solaris.nite
Protege

I just found this unofficial oculus graph API repo on GitHub:

https://github.com/if1live/oculus-graph

 

I see some references to the profile image in the README so you could check that out. Its for GraphQL but the GraphQL API has an automatic REST wrapper. You could check out the facebook docs to see how that works. Basically, you just include "fields=name,etc" parameter on a graph node endpoint to specify which fields you want to retrieve.

 

Pretty unfortunate that 3rd parties are trying to document the API via brute force because Oculus doesn't provide.