You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works perfectly except the provider parameter inside of SocialController@getLogin. For now I've forced it to always be facebook instead of accepting a parameter but I would really like it to be extensible to other providers without having to change too much.
My changes:
/**
* Social providers controller.
*
* @author Mark Manos
*/
class SocialController extends Controller
{
/**
* Login action.
*
* @param string $provider
*
* @return mixed
*/
public function getLogin($provider = null)
{
/* This is the part that always fails. Provider is always null.
if (empty($provider)) {
App::abort(404);
}
*/
$provider = 'facebook';
I followed the readme instructions by passing in array('facebook'), array('provider'=>'facebook') and no parameters and nothing seems to work. I've tried both with and without the onsuccess and onerror params as well.
<a href="{{ route('social-login', array('provider'=>'facebook')) }}?onsuccess=/blog&onerror=/login">
Log in with FaceBook
</a>
Currently using Laravel 4.2 on homestead.
Any ideas? Did I set something up incorrectly?
The text was updated successfully, but these errors were encountered:
Everything works perfectly except the provider parameter inside of SocialController@getLogin. For now I've forced it to always be facebook instead of accepting a parameter but I would really like it to be extensible to other providers without having to change too much.
My changes:
I followed the readme instructions by passing in array('facebook'), array('provider'=>'facebook') and no parameters and nothing seems to work. I've tried both with and without the onsuccess and onerror params as well.
Currently using Laravel 4.2 on homestead.
Any ideas? Did I set something up incorrectly?
The text was updated successfully, but these errors were encountered: