invalid_request for some nonces / user_id when posting to user_nonce_validate
90% of the time, invoking the meta nonce validation endpoint results in a successful validation, when I call this: https://graph.oculus.com/user_nonce_validate using the user id and nonce from ovr_User_GetUserProof(). But for 10% of my users, I get a invalid_request from the service!
I'm invoking this endpoint in a nodejs service like this:
const verifyRequestPayload = {
access_token: `OC|${appId}|${appSecret}`,
nonce,
user_id: `${userId}`,
}
const response = await axios.post(`${oculusServerHost}/user_nonce_validate`, verifyRequestPayload)
'content-length': '190'
connection: 'close',
date: 'Tue, 09 May 2023 07:34:16 GMT',
'x-fb-debug': 'XXXXXXXXXXXXXXREDACTEDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==',
'x-fb-rev': '0000000000',
'x-fb-trace-id': 'XXREDACTEXX',
'x-fb-request-id': 'XXXXXREDACTEDXXXXXXXX',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'cache-control': 'no-store',
pragma: 'no-cache',
'strict-transport-security': 'max-age=31536000; preload; includeSubDomains',
'access-control-allow-origin': '*',
'oculus-api-version': 'v1.0',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "Parameter user_id: invalid user id: 9XXXXXXXXXXXXXXX"',
'content-type': 'application/json; charset=UTF-8',
vary: 'Origin',(above are the response headers from meta; identifying information redacted for safety).
I’ve noticed a pattern where almost all the rejected ones start with 9xxxxxxxx, and the accepted ones start with 5xxxxxxx or 6xxxxxxx.
Does this make sense to anybody? Is meta systematically rejecting userids within a range, or does the nonce only apply to user ids within a particular range?
