Questions tagged [laravel-socialite]

Socialite is a package that provides a simple, convenient way to authenticate with OAuth providers within the Laravel framework.

For Laravel 5.6 this link will help to integrate third party platforms like facebook, twitter, linkedin, google, github or bitbucket

To integrate other platforms like Instagram, LinkedIn , Medium , this link is very beneficial.

606 questions
5
votes
5 answers

Laravel5 Class 'Laravel\Socialite\SocialiteServiceProvider' not found

I've added "laravel/socialite": "~2.0" as a composer dependency, and i've added the service provider in my config/app.php just like this 'providers' => [ // more providers 'Laravel\Socialite\SocialiteServiceProvider' ] Then, when i access…
brazorf
  • 1,943
  • 2
  • 32
  • 52
5
votes
1 answer

Laravel 5.1 - Facebook through Socialite (Client Error: 400)

Using this tutorial on Laracast (Laravel 5.0 - Socialite), specifically until min 12.11, I have successfully setup everything. However, I am using Laravel 5.1 Defined my route but currently commented out the callback provider, as I am just trying…
senty
  • 12,385
  • 28
  • 130
  • 260
5
votes
4 answers

Laravel 5.1 - Facebook Authentication through Socialite

I am trying to implement Facebook Login to my project however I receive an error: ClientException in Middleware.php line 69: Client error: 400 in /Applications/MAMP/htdocs/laratest/vendor/guzzlehttp/guzzle/src/Middleware.php line 69 at…
senty
  • 12,385
  • 28
  • 130
  • 260
5
votes
3 answers

Laravel 5 and Socialite - New Redirect After Login

Another newb question here, but hopefully someone can shed some light: I am using Socialite with Laravel 5, and I want to be able to redirect the user to a page on the site after they have logged in. The problem is that using return…
DonnaJo
  • 538
  • 6
  • 15
4
votes
1 answer

Twitter login issue with laravel socialite

I am using socialite package for authentication with twitter and facebook. With facebook it is working fine but with Twitter it is giving error. I am not sure where is the issue and why it is saying "Could not authenticate you". I have set the…
Pranay Sute
  • 441
  • 1
  • 8
  • 21
4
votes
0 answers

Laravel Passport (Api) with Authentication (Google,Facebook)

I am developing an application on Laravel and React. At the moment I made Registration, login through Laravel Passport (API). My task is to make Authentication through Google, Facebook. When you click on the button for the first time, it takes data…
Arthur
  • 385
  • 3
  • 13
4
votes
1 answer

facebook data deletion callback implementation in laravel using socialite

I am implementing facebook data deletion callback but I got really lost and i can't continue on the JSON response that facebook is expecting. Return a JSON response that contains a URL where the user can check the status of their deletion request…
KevDev
  • 541
  • 2
  • 6
  • 20
4
votes
2 answers

Does Google login in Laravel Socialite contain user's phone number?

I implemented Google login using Socialite in Laravel. The example I used only contains the user's name, google_id, email and profile picture. Is there a way to get the phone number from the Google callback? Or does it even contain the number?…
4
votes
1 answer

Authorising native app user with Google ID token and Laravel Socialite gives 401

I have an issue with Socialite authentication via Google. I have two separate apps: Laravel and React Native. For react native app I use @react-native-community/google-signin and after getting a token on the client I'm sending it to the Laravel app,…
4
votes
1 answer

Laravel socialite specify facebook graph version

Currently on Laravel 6 if you install Socialite and check the code on vendor, what they are using to get Facebook details is defaulted to version 3.3. You can check it in: vendor/laravel/socialite/src/Two/FacebookProvider.php This version of graph…
mpalencia
  • 5,481
  • 4
  • 45
  • 59
4
votes
1 answer

How to add service entry for azure in Laravel

I want to add microsoft azure as an authentication method. I have followed laravel's and socialites documentation to add other methods than provided by laravel. I have followed all the steps but I keep getting the error: "SocialiteProviders \…
Thijs
  • 43
  • 3
4
votes
2 answers

laravel 5.6 socialite auth by facebook email is null

I use laravel 5.6 and laravel/socialite: "^3.2.0" for auth by Facebook but while login to facebook user email is null (user facebook account has email) my code for auth : public function redirectToProvider($provider) { return…
saman
  • 305
  • 2
  • 4
  • 17
4
votes
1 answer

Vue SPA and Laravel Socialite

I am trying to integrate social logins via laravel api backend using laravel socialite stateless option since I am building a single page app with vuejs and everything is done via http api calls. However I am facing an issue with the social…
Aladin Small
  • 433
  • 2
  • 6
  • 10
4
votes
1 answer

How to check if user is still logged in google?

I am using Google OAuth through Laravel Socialite to authenticate all the users in my web app. I need the user session to end as soon as possible if user logs out of his google account. I am trying to set up a middleware that would perform regular…
Džuris
  • 2,115
  • 3
  • 27
  • 55
4
votes
5 answers

Composer fails to install laravel/socialite 2.0

composer require laravel/socialite ^2.0 is failing with below error: Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for laravel/socialite 2.0 -> satisfiable by…