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

Laravel Socialite Facebook not returning gender

Wondering if you can help me. Im using laravel socialite for login purposes. My problem is that i cant seem to get the users gender in my production env conde below: $user = Socialite::driver('facebook')->fields([ 'first_name',…
SimonBL
  • 106
  • 10
0
votes
0 answers

Laravel 5.6 with socialite login facebook

i try to make login with facebook use socialite. I had register on developers.facebook.com and got my APP_ID and Secret_code and i had implement it in my .env file and config/services.php. But when after i input my username and password facebook it…
andri purnama
  • 91
  • 2
  • 4
  • 14
0
votes
1 answer

Facebook authentication with popup in PHP - how to use accessToken and app-secret

Laravel Socialite is using OAuth 2.0. It is ugly for facebook. I don't like idea of sending users to facebook page and getting them back, when we can use pop-up. So, my plan was using standard Facebook popup from javascript api. fist - using Basic…
Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191
0
votes
1 answer

Laravel on https domain respons from http

I'm trying to implement facebook auth using SPA - Angular 6 and backend API - Laravel with Dingo/API. When I try to redirect and return to SPA the page public function redirectToProvider() { return…
Sergey
  • 7,184
  • 13
  • 42
  • 85
0
votes
0 answers

After installing Laravel Socialite, Query scope method and relationships not working

I have a scope method "scopeUserResponse" in user model: public function scopeUserResponse($query,$user_id) { return $query->where('users.id' , $user_id)->select( 'users.id as user_id', 'users.username as…
Cody
  • 91
  • 1
  • 14
0
votes
0 answers

Social login error : Class 'Laravel\Socialite\SocialiteServiceProvider' not found

I am use Laravel socialite for facebook login I've set app\config and app\service I've ran the commands php artisan cache:clear php artisan clear:config The project runs successfully but on server it's showing error Class…
shiv
  • 69
  • 9
0
votes
1 answer

Laravel Passport, internal oAuth AFTER socialite login.?

Can I run a scenario by you? I'm struggling with the data flow in my head... and what's possible. I have an app. I also have a couple of different data cores (laravel apps) that will proved data to the app, but need to ensure the user is logged in…
Beertastic
  • 691
  • 1
  • 9
  • 27
0
votes
0 answers

Socialite, facebook auth redirect URI is not whitelisted in the app

I tried it on local, was working ok. When I deployed website and made the application live on facebook for developers it does not seem to work. So I added the live domain and stuff So I have the redirect funtion which is: public function…
Agil
  • 376
  • 5
  • 26
0
votes
1 answer

Laravel Socialite Package Error

I'm getting below error when trying login with google or Facebook. Argument 1 passed to Illuminate\Auth\Guard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given i'm using socialite package for laravel. what…
0
votes
0 answers

laravel socialite - callback not triggered in production

I have a Laravel 5.5 application with Login with Google using Socialite. It works in development. I click the login with Google button, sign in and am redirected back to the user dashboard via a callback route. In production though I click the…
Connor Leech
  • 18,052
  • 30
  • 105
  • 150
0
votes
1 answer

Add query to Instagram Redirect (Error: Redirect URI doesn't match original redirect URI)

I'm using Laravel Socialite Providers to use Instagram API. Nonetheless, it should work seamlessly, but still, I get the error, when I try to add an additional query: "Error: Redirect URI doesn't match original redirect URI" What works return…
Philipp Mochine
  • 4,351
  • 10
  • 36
  • 68
0
votes
0 answers

Tips in saving user details during Social Media Authentication (Laravel Socialite)

Can you give me some tips in saving user details during social media authentication. Should i save the directly to the users table, or create a new table for social authentications? Data synchronization is good but if there an instances like: An…
Rannie Ollit
  • 160
  • 2
  • 17
0
votes
1 answer

Angular ng2-ui-auth and Lumen Socialite not matching request POST

ng2-ui-auth is so configured Ng2UiAuthModule.forRoot({ baseUrl:'http://localhost:8000', loginUrl: '/api/auth/login', providers: { google: { clientId: '....', url: '/api/auth/google' } } }) when sending session data to…
davidetrapani
  • 540
  • 2
  • 7
  • 16
0
votes
0 answers

Save value from nested array - Laravel

I have the following array returned from an API call and want to save values for "user.location.name" and others which are contained within the multidimensional response. Here is the edited response which shows the…
0
votes
0 answers

Laravel built-in Remember Me doesn't work anymore

I'm facing issue with the Remember Me built-in feature in Laravel: it just doesn't work anymore. Actually, it does work for some time, but doesn't last more than a few hours… The only thing I can see that changed since it doesn't work anymore is the…
Pierre Le Bot
  • 294
  • 1
  • 5
  • 20