I had this error. “Parameter redirect_uri does not match registered URI”

You should also ensure that when you are passing the redirect URI to the oAuth entry point you are correctn URI Encoding it as part of the URL.