This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

IchBin
IchBin

How to use this in october.

/**
 * The event handler mappings for the application.
 *
 * @var array
 */
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here
        'SocialiteProviders\Instagram\InstagramExtendSocialite@handle',
    ],
];  

Last updated

alxy
alxy

What exactly are you trying to do? If you are trying to get a social login working (combined with RainLab.User), there are several plugins for this already ;)

IchBin
IchBin

I know you are but
I managed to do one with socialite.
but fail to make it work with instagram.

 public function register()
    {
        app()->register('Laravel\Socialite\SocialiteServiceProvider');
        app()->register('\SocialiteProviders\Manager\ServiceProvider');

        AliasLoader::getInstance()->alias('Socialite', 'Laravel\Socialite\Facades\Socialite');

    }

http://socialiteproviders.github.io/providers/instagram/#add-the-event-and-listeners

Last updated

naurislinde26455
naurislinde26455

I'm in the same position where I can't figure out how to add custom listener to plugin. I want to add vKontakte login option, but I get back this error

'Driver [vkontakte] not supported.'

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.