Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
andrea.rojas9's avatar
andrea.rojas9
Honored Guest
10 months ago

Invalid Nonce Error While Using Oculus Graph API for User Proof Validation

Hello,

I’m currently working on integrating Meta/Oculus authentication with my backend using the user_nonce_validate endpoint from the Oculus Graph API. The goal is to validate user identity by sending the nonce generated by the User_GetUserProof() function in Unreal Engine, along with the user's ID and access token.

However, despite ensuring the entitlement succeeds, all necessary permissions are enabled (e.g., user_proof), and using valid credentials, I’m consistently getting an invalid nonce error in response.

Request Details

API Endpoint:

https://graph.oculus.com/user_nonce_validate

Query Parameters:

  • nonce: Generated from UOvrRequestsBlueprintLibrary::User_GetUserProof().
  • user_id: Extracted from FOvrUser::ID 
  • access_token: Generated using UOvrRequestsBlueprintLibrary::GetAccessToken().

Error Response

Here’s the response I’m receiving from the API:

{
    "error": {
        "message": "Invalid OAuth 2.0 Access Token",
        "type": "OCApiException",
        "code": 190,
        "error_data": {},
        "fbtrace_id": "ABmbnPJcizkeCj1kxFcDMXM"
    }
}

 

 


Any help or insights would be greatly appreciated. Or if you know another way to validate the user. 
Let me know if more information is needed.
Thanks