Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facebook auth no longer working - Can't load URL #1123

Open
jolleychris opened this issue Apr 10, 2018 · 4 comments
Open

facebook auth no longer working - Can't load URL #1123

jolleychris opened this issue Apr 10, 2018 · 4 comments

Comments

@jolleychris
Copy link

Having changed nothing, I get the following message when the facebook popup appears:

Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.

I've checked the app settings, and the domains in the list are correct, and remain as they have always been set to.

@jolleychris jolleychris changed the title facebook auth no longer working - URL facebook auth no longer working - Can't load URL Apr 10, 2018
@ViieeS
Copy link

ViieeS commented Sep 28, 2018

@jolleychris I use this settings:

$authProvider.oauth2({
        name: 'facebook',
        authorizationEndpoint: 'https://www.facebook.com/v3.1/dialog/oauth',
        clientId: '1234567890',
        url: '/auth/facebook',
        redirectUri: window.location.origin + '/',
        requiredUrlParams: ['scope'],
        optionalUrlParams: ['auth_type'],
        scope: ['email'],
        scopeDelimiter: ',',
        authType: 'rerequest',
        oauthType: '2.0',
        popupOptions: {width: 680, height: 500}
    });

@orochies
Copy link

Hi, I used your recommendation, but now the popup looks very bad. Thank you.

Popup

@ViieeS
Copy link

ViieeS commented Mar 29, 2019

@orochies try to increase width popupOptions: {width: 680, height: 500} or remove this

@orochies
Copy link

Hi, thanks for your prompt response, in the end I used the following configuration and it worked perfectly.

$authProvider.oauth2({
    name: 'facebook',
    authorizationEndpoint: 'https://www.facebook.com/v3.2/dialog/oauth',
    clientId: [CLIENT ID],
    url: '/auth/facebook',
    redirectUri: window.location.origin + '/',
    requiredUrlParams: ['display', 'scope'],
    scope: ['email'],
    scopeDelimiter: ',',
    display: 'popup',
    oauthType: '2.0'
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants