redirect_uri. The URL that you want to redirect the person logging in back to. This URL will capture the response from the Login Dialog. If you are using this in a webview within a desktop app, this must be set to https://www.facebook.com/connect/login_success.html (твой самодельный случай). You can confirm that this URL is set for your app by going to the App Dashboard, clicking Facebook Login in the right-hand menu, and checking the Valid OAuth redirect URIs in the Client OAuth Settings section.
token. Response data is included as a URL fragment and contains an access token. Desktop apps must use this setting for response_type.