Facebook newbie - cannot log into the application - gettin error without any useful information

I am trying to implement my first Facebook application and I am stuck at the very first stage of coding.

I created the application on the Facebook website, got my application id, and I am making an ASP.NET authentication application. It has only one line:

Response.Redirect (
"https://www.facebook.com/dialog/oauth?client_id=MYAPPID&redirect_uri=localhost");

When I run it, it redirects to facebook and I get:

An error has occurred with MYAPPNAME. Please try again later.

It retrieves the name of the application, so the identifier is correct, and there is very little else that I could be wrong :-)

I also tried using different URLs instead of localhost, and I am currently planning to use VPS to try it with a widely deployed web application if it doesn’t work with the local one.

The search found only a lot of posts complaining of similar problems, but not the same. I found this question that looks pretty similar, but the confirmed answer says a change to FB.init (), which I think is part of some SDK, so it is not applicable to me.

+3
source share
1 answer

Your redirect urid should be the URL that is in the domain configured in your application. As noted in the documentation .

"The redirect_uri must be within the same domain as the Site URL you specify in Web site tab of the Developer App"

+1
source

All Articles