{"action":"reopened","issue":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/476","labels_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/476/comments","events_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/476/events","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/476","id":97247614,"number":476,"title":"https is not detected when $redirectUrl is not specified","user":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-25T19:09:56Z","updated_at":"2015-08-03T19:20:40Z","closed_at":null,"body":"I am building a site for `.space` domain. I finished Facebook login on my localhost, where I use a local, not existing, `.dev` domain. On localhost the login app works well.\r\n\r\nBut when I placed my code live on `.space` domain, I get `Invalid redirect_uri` error after the user approved the app and was redirected back to my site, and in url I have `https://my-site.space/user/oauth/facebook?code=...` *(when the script tries to exchange the code for an access token)*.\r\n\r\n* I have added `my-site.space` to **App Domains**\r\n* I have added `https://my-site.space/` *(and all possible combinations, full url, with and without `https`)* to **Valid OAuth redirect URIs** \r\n* I have set **Client OAuth Login, Embedded Browser OAuth Login, Web OAuth Login** to **Yes**\r\n* I use lates [PHP SDK](https://packagist.org/packages/facebook/php-sdk-v4)\r\n\r\n-----\r\n\r\n* Does Facebook have issues with `.space` domains when used in apps?\r\n* Does anyone have a site with facebook login with long domain name like `.space` or `.production`, it works well?"}}