cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Facebook ID from Oculus ID

elson915
Explorer
Hey All, 

I have a quick question! If one of my users logs in from Facebook into Oculus, is there a way for me to retrieve their Facebook ID from Oculus to use in my Gear VR application? 

I am using:
Gear VR
Unity
C#

Right now, I am using  Oculus.Platform.Users.GetLoggedInUser().RequestID;  But right now all I get is the number 3 when I debug log...

Follow-up question, how does this work in development on my S8? Does it make the calls referencing the Oculus app or do I need to add some kind of credentials to pull up my Oculus/FB information?

2 REPLIES 2

elson915
Explorer
Hey! Thank you for your quick response! When do you think (if ever) I can be able to access the FB ID?
Are you using a  native or game-engine based implementation in your application?
I am using Unity to develop!

eovento
Protege


Right now, I am using  Oculus.Platform.Users.GetLoggedInUser().RequestID;  But right now all I get is the number 3 when I debug log...



I'm also having troubles getting Oculus Username. I don't even need Facebook ID, only the Oculus User.

(Also developing in Unity, for Oculus Go.)

By trying Oculus.Platform.Users.GetLoggedInUser().RequestID, I'm also getting only a number (5, in my case).
Have you found out how to get the username? I would love if you could throw me some light.
Thank you in advance!