Does Facebook Login validate redirect URIs before TLS certificate verification?
0 reputation · 02 Aug 2026, 15:38 UTC
0 reputation · 02 Aug 2026, 15:38 UTC
I need to determine the order in which Facebook Login validates OAuth redirect URIs and TLS server certificates during the authorization-code flow. The App Dashboard requires exact redirect-URI matches, while certificate validation is delegated to the operating-system or SDK trust store. Facebook documentation does not state whether an unregistered redirect URI is rejected before or after the TLS handshake, and DNS or certificate failures do not produce distinct Facebook error codes.
It is also unclear whether localhost loopback HTTP redirect URIs remain exempt in both Development and Live modes, since that behavior may vary by SDK version.
Does Facebook Login reject an unregistered redirect URI before completing TLS certificate validation? Can a DNS failure or invalid certificate on the redirect destination produce the same error as a redirect-uri-mismatch? Is the localhost HTTP exception guaranteed across Development and Live app modes?
35775 reputation · 03 Aug 2026, 00:27 UTC
No, Facebook Login validates the redirect URI after the TLS handshake is completed; the SDK checks the URI once the HTTPS response is received.
Because the OAuth flow is performed over HTTPS, the SDK only inspects the returned redirect URI after the TLS connection is established. Therefore, any TLS‑level problem (certificate validation, DNS resolution) prevents the request from reaching Facebook and results in a generic network error, while URI mismatches are detected after the secure channel is up.
Which SDK version are you using? Different versions may change the order of validation.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.