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
0 answers

Object not found laravel

As I already ask about The redirect_uri URL must be absolute facebook Laravel now I have another error connected with this problem. After I fix the redirect uri, now I have problem with the callback function. First time I can login with facebook but…
Devmasta
  • 513
  • 2
  • 14
  • 38
0
votes
2 answers

The redirect_uri URL must be absolute facebook Laravel

I want to make login with facebook using Socialite in laravel. First I set the route function: Route::group(['middleware' => ['web']], function(){ Route::get('auth/facebook', [ 'as' => 'auth-facebook', 'uses' =>…
Devmasta
  • 513
  • 2
  • 14
  • 38
0
votes
0 answers

How do I test if user is redirected to the current page after social auth?

I want to make user stay on the same page after authenticating using Facebook, for instance. But when testing there's no notion of current page, as far as I could tell. I could probably set $_SERVER['REQUEST_URI'], but is that really okay? And if…
x-yuri
  • 16,722
  • 15
  • 114
  • 161
0
votes
2 answers

How to revoke user permission on Socialite

I want to revoke the permission user gave me on Facebook, if he denied to give me Facebook's email. How can I do that?. I'm using Socialite on Laravel 5.2 Thank you
0
votes
0 answers

Laravel Facebook callback NotFoundHttpException

Problem When I try to login with Facebook (using Laravel Socialite) it returns wrong callback route, and throws a NotFoundHttpException. /callback?code=xxxxxxxxxxxxxxxxx I think it should return callback/facebook?code=xxxxxx for the login to…
Olof84
  • 919
  • 4
  • 14
  • 29
0
votes
1 answer

Local issuer certificate error

I am using socialite and using google for OAuth. When I authorize the application which results in the following error. I also used facebook where I get the same error. But I fixed it by creating cacert.pem and placing its path in php.ini. Then why…
Jamal Abdul Nasir
  • 2,557
  • 5
  • 28
  • 47
0
votes
1 answer

Laravel Class 'Socialite' not found

Using composer, I have installed Socialite package to my local machine. It works well. Then I upload all the vendor/laravel/socialite directory as it is to server. Then on server, in composer.json added the line - "laravel/socialite": "^2.0" Also,…
SandyK
  • 465
  • 1
  • 9
  • 28
0
votes
1 answer

Laravel 5.1 loginUsingId() with linkedin account (using socialite) failed in Authenticate middleware

I'm using Laravel 5.1 and try implements login with LinkedIn to my app. The OAuth 2 login process working fine and I manage to add a new user to users table with the correct details. I can manage to log this user in using Laravel loginUsingId()…
benjah
  • 613
  • 7
  • 29
0
votes
1 answer

Integration Socialite with Laravel 5.1 InvalidState issue

I have a problem when installing Socialite plugin on Laravel 5.1. First I have this AuthCOntroller.php code: public function redirectToProvider($provider) { return Socialite::driver($provider)->redirect(); } public function…
Aleks Per
  • 1,549
  • 7
  • 33
  • 68
0
votes
0 answers

Facebook login - URL blocked

I have an option for users to sign via Facebook. I'm using Socialite package. Everything works fine on local server, but in production I am getting an error which says that URL is blocked. I know that URL needs to be assigned in Facebook…
harunB10
  • 4,823
  • 15
  • 63
  • 107
0
votes
0 answers

Socialite in Laravel 5.1

I'm trying Socialite with laravel 5.1 and I always got this error during call back route InvalidStateException in AbstractProvider.php line 200: and this is my code for callback route public function handleProviderCallback($provider) { $user…
Mahmoud Niypoo
  • 1,598
  • 5
  • 24
  • 41
0
votes
1 answer

Overriding Laravel RedirectResponse

I'm extending Laravel Socialiste for a new Oauth provider and having trouble with the simple issue of altering the authorize url. The url generated by the RedirectResponse has %2C instead of +, e.g.,…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
0
votes
1 answer

Laravel Socialite not returning user data

I configured Laravel Socialite and it was returning user data. I discovered that the data structure was changed. $user = Socialite::driver('facebook')->user(); is not returning name, email and avater. Please anyone know what happened to the…
rocky
  • 81
  • 8
0
votes
2 answers

Send and retrieve a custom field in Socialize laravel 5

How can I sent a custom field in socialize laravel in RedirectToProvider method using this method: if ($social == 'facebook') { return Socialize::with($social)->fields([ 'first_name', 'last_name', 'email', 'gender', 'birthday' …
rehan aziz
  • 64
  • 1
  • 8
0
votes
1 answer

InvalidStateException in AbstractProvider.php line 199 on production, Laravel 5.2.39

I use Socialite 2.0 and Laravel 5.2.39. The social login on localhost:8000 is working properly but It doesn't work on the production site (example.com). public function handleProviderCallback($provider) { $social_user =…
metylbk
  • 131
  • 1
  • 1
  • 11