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
7
votes
9 answers

Laravel 5.5 socialite integration shows error formatRedirectUrl() must be of the type array, null given

I am using "laravel/socialite": "^3.0", to facebook login. But it shows an error Type error: Argument 1 passed to Laravel\Socialite\SocialiteManager::formatRedirectUrl() must be of the type array, null given, called in…
Nithin John
  • 897
  • 3
  • 8
  • 21
7
votes
2 answers

Laravel Socialite token refreshing

The access_token acquired by Socialite (via Socialite::driver(self::PROVIDER)->user() has a limited time validity. For Google it's an hour. I'm able to get refresh_token by changing the redirect call…
rootpd
  • 317
  • 3
  • 9
7
votes
3 answers

Socialite laravel 5.4 Facebook Provider

i have a problem here maybe sameone can help me: i install the Socialite pakcage to my laravel project and in start it work perfect with facebook , google and linkedin provider. But now it get always this message when i try to connect with…
Malek Ben el ouafi
  • 995
  • 12
  • 37
7
votes
1 answer

Laravel Socialite: Missing required parameter: redirect_uri

I am using Laravel 5.3 with Socialite. I am getting 400 Bad Request error with message: Missing required parameter: redirect_uri The URL it generates…
Volatil3
  • 14,253
  • 38
  • 134
  • 263
7
votes
1 answer

Getting Google Refresh Token with Laravel Socialite

Using Laravel Socailite to connect to the Google API and I am getting back a connection fine, however this access doesn't return a refresh token so my connection is timing out. $scopes = [ 'https://www.googleapis.com/auth/webmasters', …
7
votes
2 answers

how to handle laravel socialite "Missing authorization Exception"

In Laravel Socialite We are redirected to facebook. But When User Cancels (not allowing facebook to access public profile) it is giving error Missing Authorization exception ClientException in RequestException.php line 107: Client error: GET …
7
votes
3 answers

Target [Laravel\Socialite\Contracts\Factory] is not instantiable

I am using laravel lumen 5.2. Target [Laravel\Socialite\Contracts\Factory] is not instantiable. I came across this error when trying to get Laravel to login with Twitter using the Socialite package. Work already done: A) In config\app.php 1.…
Sannan
  • 83
  • 1
  • 5
6
votes
2 answers

Log-in users in flutter through social accounts with laravel-socialite backend

I am working on a flutter application, and I want to implement social login (Google and Facebook). My API is implemented with Laravel and uses Laravel-socialite to authenticate users, there is the backend, web frontend (using VueJs) and now I am…
Hamza Mogni
  • 672
  • 1
  • 7
  • 21
6
votes
0 answers

Laravel Passport + Laravel Socialite + Flutter

I need your help. I made an API with Laravel and an APP with FLutter. Now I want to make google login. In a browser or with a rest client like Insomnia, Postman or similar works fine. It is because the system shows me a google's page that I must…
SeiyaJapon
  • 534
  • 1
  • 7
  • 21
6
votes
4 answers

Laravel Socialite: Legacy People API has not been used in project

I have used Laravel 5.4 with socialite 3.0 for social login on my web application. But nowadays I got an error Legacy People API has not been used in project xxx. Then I have made some changes in a core file of socialite…
6
votes
2 answers

Cookie is removed after gmail login

I'm implementing an online reservation system using Laravel Framework version 5.6 and Laravel Socialite to implement gmail login. I have a method that checks if user is logged in before reservation, or it puts reserveData and redirectUrl specified…
Ali Tavafi
  • 443
  • 1
  • 10
  • 28
6
votes
2 answers

how to check if user is authenticated with passport (get user from token using laravel-passport)

I am using Passport to log in users to a Laravel API endpoint, users get authenticated using their social accounts (google, facebook) using laravel-socialite package. the workflow of logging users in and out works perfectly (generating…
Hamza Mogni
  • 672
  • 1
  • 7
  • 21
6
votes
2 answers

Twitter OAuth Access Token Error: Request token missing

I'm trying to run through a proof of concept social sign in flow with Twitter using Postman, following this guide: https://developer.twitter.com/en/docs/twitter-for-websites/log-in-with-twitter/guides/implementing-sign-in-with-twitter I'm stuck on…
brice
  • 1,801
  • 1
  • 10
  • 15
6
votes
1 answer

linkedin cat get vanity name

Hi I am trying to get the profile url for the user that is logging in from linkedin(the login part has been nailed), but according to the documentation I need to request for the vanity name from the api. So I requested it like…
Ricardo Garza V.
  • 899
  • 1
  • 11
  • 26
6
votes
2 answers

Laravel Socialite : Laravel\Socialite\Two\InvalidStateException

I am new to Laravel Socialite and I am getting this error while redirecting back from Social media login Laravel\Socialite\Two\InvalidStateException in/vendor/laravel/socialite/src/Two/AbstractProvider.php:209** Even I have tried this solution…
SiVi
  • 177
  • 1
  • 14
1
2
3
40 41