Search code examples
facebooklaravellaravel-5.1laravel-socialite

App Domain when using localhost for facebook authentication laravel 5.1


hello so im using socialite in laravel 5.1 and using it in localhost still and in also using xampp. When i click the login button i created it has an error just like this enter image description here

do i have to change the settings in my facebook dev settings? right now it looks like this enter image description here

do i need to have changes on this? on my .env file

FACEBOOK_CLIENT_ID=xxxxx
FACEBOOK_CLIENT_SECRET=xxxxxxx
CALLBACK_URL=http://localhost/<my projectname>/public/auth/facebook/callback

UPDATE:

hi so i also added htpp://localhost/ in my app domain but i got some warning saying enter image description here

ps: im using xampp.

any ideas what im doing wrong? thanks in advance


Solution

  • Probability, wrong configuration on FB developer dashboard or blank in App Domains Textbox or have you changed a URL's of an existing App?

    You should recheck again under Facebook.

    1. Check correct App setting

    2. Add App Domains in App Domains Box Check

    3. URL and path to your development environment

    You can reference in Answer1 and Answer2

    I'm not sure this step is related with yours. But, I tried to test according to your error message.

    enter image description here

    enter image description here