facebook is a picky pain in the *** in your facebook config you set a single domain name or ip address that is associated with the facebook app. all redirects that you specify when making calls to the facebook API must be in that domain/ip address. so your facebook config would need to have http://58.168.6.57 as the app domain (or whatever they call the setting these days) based on the URL above.
this makes testing a PITA. i have a plethora of facebook apps....in real life i use 3: 1 for localhost, 1 for test server and 1 for production (with a squirrelly if statement to select which set of facebook keys to use based on the detected server environment) if anyone has better suggestions, i'm all ears! cfh On Sunday, July 22, 2012 6:59:48 AM UTC-7, Alec Taylor wrote: > > I generated a new application on Facebook—added in the new CLIENT_ID > and CLIENT_SECRET—but when I tried to login, the URL said: > > > https://graph.facebook.com/oauth/authorize?scope=user_photos%2Cfriends_photos&redirect_uri=http%3A%2F%2F58.168.6.57%2Fuser%2Flogin&response_type=code&client_id=<my > > > top-secret clientID here> > > And the page said: > > { > "error": { > "message": "Invalid redirect_uri: Given URL is not allowed by > the Application configuration.", > "type": "OAuthException", > "code": 191 > } > } > > Here is my db.py: http://pastebin.com/zULTxA7D > > What is going wrong? — I've tried modifying all my redirects, to no avail. > > Thanks for all suggestions, > > Alec Taylor > --

