app/Http/Controllers/Auth/LoginController.php
/**
     * Return a callback method from facebook api.
     *
     * @return callback URL from facebook
     */
Return a callback method from facebook api.
@return callback URL from facebook
Return a callback method from facebook api . @return callback URL from facebook
public function callback(SocialFacebookAccountService $service)
    {
        $user = $service->createOrGetUser(Socialite::driver('facebook')->user());
        auth()->login($user);
        $userinfo = $user;
        return view('home', ['userinfo'=>$userinfo]);
    }
public function callback ( SocialFacebookAccountService $ service ) { $ user = $ service -> createOrGetUser ( Socialite :: driver ( 'facebook' ) -> user ( ) ) ; auth ( ) -> login ( $ user ) ; $ userinfo = $ user ; return view ( 'home' , [ 'userinfo' => $ userinfo ] ) ; }
Return a callback method from facebook api.
Return a callback method from facebook api .