laravel-socialite

Get uploaded pictures of authenticated user facebook socialite laravel

三世轮回 提交于 2019-12-07 16:23:08
问题 I am using laravel version 5.4.36 and i am using Laravel Sociallite plugin to connect user with facebook. I want to get uploaded pictures of logged in user as suggested in the document This is available through the photos edge on the User object. public function redirect() { // return Socialite::driver('facebook')->redirect(); return Socialite::driver('facebook')->fields([ 'first_name', 'last_name', 'email', 'gender', 'birthday','location','hometown','age_range','friends','posts','photos' ])-

laravel socialite not working on live server, only works on local machine

守給你的承諾、 提交于 2019-12-07 13:04:55
问题 I have recently moved my application into a live server. The problem is laravel socialite stopped working, below is the explanation: I click on google login and after choosing email, on callback this happens: InvalidStateException on Abstract.php on line 200. To fixed this issue i used stateless() and now the new error is : Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `400 Bad Request` response: { "error": "invalid_request", "error_description": "Missing

laravel socialite not working on live server, only works on local machine

我的梦境 提交于 2019-12-06 03:43:09
I have recently moved my application into a live server. The problem is laravel socialite stopped working, below is the explanation: I click on google login and after choosing email, on callback this happens: InvalidStateException on Abstract.php on line 200. To fixed this issue i used stateless() and now the new error is : Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `400 Bad Request` response: { "error": "invalid_request", "error_description": "Missing required parameter: code" } Here is the list of things i have already tried: 1- In Google website, I updated

Laravel 5.1 - Facebook through Socialite (Client Error: 400)

你。 提交于 2019-12-06 02:59:12
问题 Using this tutorial on Laracast (Laravel 5.0 - Socialite), specifically until min 12.11 , I have successfully setup everything. However, I am using Laravel 5.1 Defined my route but currently commented out the callback provider, as I am just trying to fetch the user details through taken token: Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider'); //Route::get('auth/facebook/aaa', 'Auth\AuthController@handleProviderCallback'); Added necessities in config>services.php :

How can I manage OAuth refresh tokens with Laravel?

偶尔善良 提交于 2019-12-05 02:13:42
The Socialiate plugin provides an implementation for OAuth in Laravel, but it seems to be designed for mostly for the purpose of allowing them to not have to make a user account on your own site. I am making an application that helps manage their Youtube account, meaning the scope of the auth request is broader (which was easy to change) but I also need a refresh token (versus just an access token) for long-term access to their account. Is there a package out there for Laravel that already handles this? I haven't been able to find one, but maybe I'm searching for the wrong thing. If not, how

URL Blocked: This redirect failed because the redirect URI is not whitelisted…(Localhost web application)

ε祈祈猫儿з 提交于 2019-12-05 00:15:47
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs. I've installed the laravel/socialite and I'm trying to link my application with facebook ! after installing the package ,creating my facebook application , I try to acces to the login page with facebook on my application but it keeps telling me that ther's some kind of URL errors ... ??? any ideas.? It's redirect URL problem. Facebook automatically generates a redirect URL which

Laravel 5.1 - Facebook through Socialite (Client Error: 400)

不羁岁月 提交于 2019-12-04 07:43:28
Using this tutorial on Laracast (Laravel 5.0 - Socialite), specifically until min 12.11 , I have successfully setup everything. However, I am using Laravel 5.1 Defined my route but currently commented out the callback provider, as I am just trying to fetch the user details through taken token: Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider'); //Route::get('auth/facebook/aaa', 'Auth\AuthController@handleProviderCallback'); Added necessities in config>services.php : 'facebook' => [ 'client_id' => '##', 'client_secret' => env('FB_SECRET_ID'), 'redirect' => 'http://laratest

Laravel Socialite: Invalid request. Missing OAuth verifier. (Twitter)

百般思念 提交于 2019-12-02 04:58:05
问题 This is my first time working with Socialite and I can't seem to get it to work correctly. Essentially, all I want is to return some account details of the currently authenticated account. I have it working when it comes to logging in and creating an account but when I try to return details using that account I'm greeted with the missing OAuth verifier error. Here is a short video clip of my authorizing the app as expected and then clicking a link that should return JSON data about the

Laravel Socialite: Invalid request. Missing OAuth verifier. (Twitter)

做~自己de王妃 提交于 2019-12-02 02:10:25
This is my first time working with Socialite and I can't seem to get it to work correctly. Essentially, all I want is to return some account details of the currently authenticated account. I have it working when it comes to logging in and creating an account but when I try to return details using that account I'm greeted with the missing OAuth verifier error. Here is a short video clip of my authorizing the app as expected and then clicking a link that should return JSON data about the account: https://youtu.be/LE8x9P8N_dU Inside the controller for returning the account details I have: public

Laravel Socialite 2.0 Facebook Authentication only returning id and name

泪湿孤枕 提交于 2019-12-01 07:12:58
I am using Laravel's Socialite package (version 2.0.0). It is working great for google and github but when I try to login with facebook, I get this: ErrorException in FacebookProvider.php line 89: Undefined index: first_name In the FacebookProvider.php the error is from this method: protected function mapUserToObject(array $user) { return (new User)->setRaw($user)->map([ 'id' => $user['id'], 'nickname' => null, 'name' => $user['first_name'].' '.$user['last_name'], 'email' => isset($user['email']) ? $user['email'] : null, 'avatar' => $this->graphUrl.'/'.$this->version.'/'.$user['id'].'/picture