Hi, try this:
public function redirect($provider)
{
$redirectUrl = "callback-url";
return Socialite::with($provider)->redirectUrl($redirectUrl)->redirect();
}
@aaron94 this works well for Facebook, but it seems as if you cannot set redirectUrl when using Twitter provider. Any ideas?
@AmbitionPHP try this way:
public function socialLogin($loginFrom){
return Socialite::driver('facebook') >redirectUrl('http://your-domain.com?data=123')->redirect();
}
qwertynik liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community