Most likely this is caused by a difference in the URL you added as your domain / website when you created the application and the callback URL that you are using in the OAuth process. You need to ensure that the domains are the same. Sub-domains or custom ports (e.g. example.com:8080) that are different than what you registered the application with will also cause a problem.