Laraship

⌘K
  1. Home
  2. Docs
  3. Laraship
  4. User Module
  5. Social Login
  6. Facebook

Facebook

  • Register yourself at developers.facebook.com.
  • In the top right corner, if you never developed a facebook app before click ‘Create App’ button or else in select ‘Create App’ option in the drop down below your previously created apps.
Fill your app details like app name, contact email and category,
After creating a sample app, In you setting section, you need to fill details like ‘App Domain/s’ and ‘Website URL’ where you app is used. I just set them to local host for now.
Now we use those ‘App Id’ and ‘App Secret’ as CLIENT_ID and CLIENT_SECRET in you app configuration file. We store those details in .env file and reference them in in you .env file,

 

FACEBOOK_KEY=
FACEBOOK_SECRET=
FACEBOOK_REDIRECT_URI=/social-auth/facebook/callback
Shopping cart
Sidebar

BLACK FRIDAY

70% DISCOUNT ON OUR ENTIRE PLATFORMS
GO TO STORE
LIMITED TIME OFFER
close-link