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

How to show a succes message when logging in with Facebook in with laravel?

I'm trying to show a succes message when a person logs in with facebook (Socialite). But my controller is not redirecting with a session object for some reason. My facebook login is working properly. I think Laravel is using the protected…
Jim Peeters
  • 2,573
  • 9
  • 31
  • 53
0
votes
0 answers

Laravel login with Socialize

i have problem with Socialize login, exactly when I accept application on facebook,i go to redirect, callback and i dont have user parametr. So if I use dd(Socialize::with("facebook")->user());, i got error 500. I set configuration in service…
Khurian
  • 120
  • 1
  • 10
0
votes
1 answer

Why can't I store facebook id and avatar path with oauth login using laravel?

I am using Socialite to login/register with facebook into my application. When I dump my $facebookUser variable I see this json : $facebookuser : But when I try to store the id and avatar , it doesn't store it and I can't display the users…
Jim Peeters
  • 2,573
  • 9
  • 31
  • 53
0
votes
2 answers

Laravel Socialite - Different Providers With Same Email - Security How to Fix

Ok so I read how to implement Laravel socialite into my application so I can let users log in using Google or Facebook. I read how to do it here. The problem I encounter with this approach is that if a user logs in from say Google with email…
Magearlik
  • 523
  • 1
  • 6
  • 18
0
votes
1 answer

How to get a list of facebook users that also use my app with Laravel socialite?

Like the title says, I have currently implemented a socialite login on my website but I don't know exactly how to get a list of user friends that also use my app when a user logs in. The socialite documentation states the following code example to…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
0
votes
1 answer

Laravel User Eloquent model returning null when record exists

Hair-pulling time. I have implemented a callback for Laravel Socialite. It's running User::where against the Twitter user ID, but is always returning null despite the fact that there is a record in the database that matches. Therefore it always…
codewithfeeling
  • 6,236
  • 6
  • 41
  • 53
0
votes
1 answer

How to override native socialite provider?

As I am interested in getting the gender info form social network when user register, I've noticed that gender mapping is missing in the native Laravel socialite provider, for ex: GoogleProvider.php protected function mapUserToObject(array $user) …
Mohammad AL-Raoosh
  • 721
  • 1
  • 12
  • 32
0
votes
2 answers

Laravel 5.2.* Laravel/socialite catch when facebook deny access

I'm using Laravel 5.2.* and laravel/socialite 2.0.14 and everything is fine when when trying login to facebook and in Facebook click "Okay". But if I try to login with Facebook for the very first time and if I Click "Cancel" on Facebook to deny…
Jhonny Montoya
  • 113
  • 1
  • 2
  • 11
0
votes
1 answer

Laravel 5.1 and Socialite Questions

This isn't a post about a problem I'm having right now. I'm planning on using the Laravel Socialite plugin in my App, I already have a fully working login/register system using Laravel's built in Auth system but I'm wondering if there is a good way…
Andy Holmes
  • 7,817
  • 10
  • 50
  • 83
0
votes
0 answers

How do get the social login prompt to display in a popup?

I am using the socialite package to implement social login in my project. I am able display a popup to prompt the user to login in using one of the social networking sites and I am able to successfully login the user based on what they select. My…
Abhishek Asthana
  • 1,857
  • 1
  • 31
  • 51
0
votes
0 answers

Socialite Facebook Login via Restful API

I have Socialite working fine with Facebook login on website, but now I'm working to extend the project with an android app and I want to be able to support social login, (so users can use same credentials on android) trying to use this…
0
votes
1 answer

fail to login via facebook (InvalidStateException in AbstractProvider.php line 191) in laravel 5.1 socialite

i'm trying to make facebook login system on my site. here's my routes for facebook authorization Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider'); Route::get('auth/facebook/callback',…
0
votes
0 answers

Laravel, Socialite & Middleware Infinite Redirect Loop

I followed the laracasts tutorial on Socialite. My ultimate aim is to connect to azure ad, but I was having problems with various aspects of that so I thought I'd start with his github tutorial and get it working in principle first. I was fine…
Ed Fearon
  • 93
  • 1
  • 2
  • 10
0
votes
1 answer

Auth with Google or Facebook with Socialite / Laravel

I'm using social auth with Socialite / Laravel 5 ( Google & FB) With Google, I can make it work in local, I define Redirect URL to : http://laravel.dev:8000/auth/login/google in Google Console But then, when I try to configure server access, I…
0
votes
1 answer

Laravel Socialite HTTPS twitter avatar

I am using laravel 5.0 and utlising the socialite extension to enable twitter login. I encountered a problem with the retrieval of the users twitter profile picture. The url for the profile picture I receive from twitter is in the following format.…
Luke14
  • 106
  • 2
  • 15