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
0
votes
1 answer

auth()->login($user) is not giving required results

I am using php laravel to write login using Facebook and Google. For that i need user to login manually. I used auth()->login($user). But it does not work. LoginController function public function googleCallback() { try { …
0
votes
1 answer

Socialite google works on localhost only, not production

I have facebook and google login using socialite, facebook works but google I've only managed to get to work locally, so for example locally the url is http://dev.thesite.com and in production the url is https://thesite.com, that's the only…
jukenduit
  • 322
  • 3
  • 15
0
votes
1 answer

Login facebook with Laravel Socialite does not return parameters on blade

Using socialite I can return the data from the Facebook user, but I can not throw this data in my route: Below is the code: public function handleProviderCallback() { $user = Socialite::driver('facebook')->user(); …
0
votes
1 answer

Laravel 5.5 Google OAuth authentication using Socialite Package (Legacy People API has not been used in project)

Im trying to add google authentication for my application which built with laravel 5.5 with Laravel Socialite. So for that I have created a google developer account via google developer console and enabled google+ api. So when I try to register…
Nipun Tharuksha
  • 2,496
  • 4
  • 17
  • 40
0
votes
0 answers

Socialite Google sign in throws InvalidStateException because of profile

I am using Laravel 5.8 and Socialite 4.1. I want to enable Facebook and Google sign in on my website. Facebook sign in works, but Google sign in throws InvalidStateException The funny thing is, if I comment out profile in the $scopes array in…
jukenduit
  • 322
  • 3
  • 15
0
votes
1 answer

Facebook Socialite Error 404: Page not found

I am setting up Facebooking socialite on my existing website and encountered an 404 error when I click "Login With Facebook " button. The error is: Sorry, the page you are looking for could not be found. I don't know whether the error is from the…
0
votes
1 answer

How to authenticate user logging in with twitter using token

I'm trying to implement twitter login into my application, I obtain the oauth_token from twitter using socialite then I followed the steps at https://developer.twitter.com/en/docs/basics/authentication/api-reference/authenticate and I pass the…
Marli
  • 9
  • 7
0
votes
2 answers

How to fix tying to get property name in view problem

I'm trying to connect laravel to socialite form facebook and GitHub everything works well but at the end of the connection to the social network apps I want to return to auth.register view with data from the social provider I have tried sending it…
0
votes
1 answer

Laravel socalite - handleProviderCallback is never triggered

I am trying to log a user in via Facebook and then use that user data to fill out the name and email in a comment form. I am using Laravel / Socialite. So in my LoginController I have this:
jukenduit
  • 322
  • 3
  • 15
0
votes
1 answer

InvalidStateException when testing mocked Socialite login via Laravel Dusk

I'm using Socialite in a Laravel application to allow users to connect via Github. My login controller contains the following two methods: /** * GET /login/github * Redirect the user to the GitHub authentication page. */ …
sbuck
  • 1,846
  • 4
  • 24
  • 40
0
votes
1 answer

Passing response from social provider back to API endpoint

I am trying to add social authentication to a laravel 5.8 API application using socialite. Following the documentation here https://laravel.com/docs/5.8/socialite#routing I created a SocialAuthController that wiill redirect the user to the provider…
Mena
  • 1,873
  • 6
  • 37
  • 77
0
votes
0 answers

How to log users in with facebook, without having them registered using it initially?

I am adding a Login with Facebook button to my Larvel web app. Users can already register using an email and a password, So what I need to do is to give the users the ability to Login with Facebook, without having to register using Facebook from the…
0
votes
0 answers

How use laravel socialite for multiauth system?

I am trying to use laravel socialite for multiauth system. But the problem is there is only one oAuth available in services.php for google . which is redirecting only one callback URL. For Example I have two type of users admin and customer. where I…
Bilal Arshad
  • 531
  • 3
  • 11
  • 33
0
votes
1 answer

Dynamic user role assignment after socialite signup

I want to give social signup and registration for multiple users. Multiple types (roles) of user can sign up. That means I want a different registration page for each of them. Now, if I give them to sign up via Google option, how do I identify at…
Vaibhav Rathore
  • 301
  • 2
  • 10
0
votes
2 answers

Call to undefined method Laravel\Socialite\Two\User::createToken()

In a laravel 5.8 API project, I want users to login via their social accounts. So far I have been able to use Socialite to retrieve user info from the provider and use it to create a new user record. But when I try to have the user log in again, it…
Mena
  • 1,873
  • 6
  • 37
  • 77