Sorry, I keep getting this error:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
The login works, however, when my file /etc/hostsmatters: 127.0.0.1 [mysite].rhcloud.comit does not work when I look at the actual one [mysite].rhcloud.com.
I am running the same application (on another server) locally as the one I am running on rhcloud. In particular, local local directories of web applications are synchronized.
URL Information
When you try to log in remotely, the URL looks like this: and fails with the above error:
https://graph.facebook.com/oauth/authorize?scope=user_photos%2Cfriends_photos&redirect_uri=http%3A%2F%2F [mypublicipaddress]% 2Fuser% 2Flogin & response_type = code & client_id = [hidden]
URL- ; :
https://www.facebook.com/dialog/permissions.request?app_id= [] & = & = HTTP% 3A% 2F% 2F [].rhcloud.com% 2Fuser% 2Flogin & response_type = & = user_photos% 2Cfriends_photos & fbconnect = 1