mkdynamic/omniauth-facebook — Issue #11: "/oauth/authorize": Invalid URL
Author: bhanuprasad143
Created: 2011-11-25 04:11:31+00:00
State: open

The URL is : https://graph.facebook.com/oauth/authorize?response_type=code&client_id=...
Response:
The requested URL "/oauth/authorize?r... " , is invalid.

In this page: http://developers.facebook.com/docs/authentication/
the url should be: https://www.facebook.com/dialog/oauth? client_id=YOUR_APP_ID&redirect_uri=YOUR_URL

Which URL is correct now?

I know there is a similar closed issue, but I tried several versions of omniauth-facebook gem, it does not help. App works with rails 3.1. I can authenticate with LinkedIn, Twitter, but not Facebook.

And when I changed the URL manually, to "https://www.facebook.com/dialog/oauth", the got redirect call from facebook, but I ran into "OpenSSL::SSL::SSLError (hostname was not match with the server certificate)".