Created By
Alexei Romanoff
03/22/2012 3:14am

Subscribers (11)

BugsUseless error messages with server-side authentication

  • Status: Fixed
  • Priority: None
  • Updated: March 26, 2012 at 8:05pm
Latest response from Facebook
Eric Osgood
Sorry for the erroneous status update, it was intended for bugs in a stale state. Please disregard the previous message.
Noorin Ladhani
Fixed the documentation. When the error is thrown, it displays the details API Error Description: The specified URL is not owned by the application
Error Message: Missing redirect_uri parameter. So, not able to repro that part.
Status changed to Fixed
When I connected my site and facebook I spent several hours in debugging issue with invalid parameter name in query(buggy example at https://developers.facebook.com/docs/authentication/server-side/):
https://www.facebook.com/dialog/oauth?
client_id=YOUR_APP_ID
&redirect_url=YOUR_REDIRECT_URI
&scope=COMMA_SEPARATED_LIST_OF_PERMISSION_NAMES
&state=SOME_ARBITRARY_BUT_UNIQUE_STRING

Right parameter name is `redirect_uri`, not `redirect_url`.
Eror message was `An error occurred. Please try again later.` and it doesn't explain the reason why this error happened. I suppose, in this case(and maybe some other cases with enabled sandbox or invalid app domain) error page should contain error message like 'Request dosn't have required arg redirect_uri'.
6 people can reproduce this issue by following these steps
Repro