Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer require socialiteproviders/twitter SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider #1193

Open
phpmac opened this issue Apr 15, 2024 · 9 comments

Comments

@phpmac
Copy link

phpmac commented Apr 15, 2024

SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider

当我使用twitter提供者会提示出错

SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider



@npldevfr
Copy link

npldevfr commented May 13, 2024

same issue here!
Capture d’écran 2024-05-13 à 12 24 47

My AppServiceProvider.php :

public function boot(): void
    {

        Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
            $event->extendSocialite('discord', \SocialiteProviders\Discord\Provider::class);
            $event->extendSocialite('twitter', \SocialiteProviders\Twitter\Provider::class);
        });
    }

@atymic
Copy link
Member

atymic commented May 21, 2024

Our twitter provider is a oauth v1 provider, which i'm guessing is why it's giving an error.
Can you post the full stacktrace please?

@atymic
Copy link
Member

atymic commented May 21, 2024

Is there a reason why you can't use the offical socialite provider?

@atymic
Copy link
Member

atymic commented Jun 8, 2024

@phpmac

@npldevfr
Copy link

Hi @atymic, sorry for the delay in replying, I hadn't seen your answer !

Here is my stacktrace https://flareapp.io/share/dPbD43A5

@boradatti
Copy link

@atymic I might have figured out a solution. Can you please look at a closely related discussion I created?

@bhagat-abhishek
Copy link

I am facing the same https://prnt.sc/7BCKbYMgx7PC
SocialiteProviders\Twitter\Provider does not extend Laravel\Socialite\Two\AbstractProvider

Can anyone guide me

@andreas-bylund
Copy link

I had the same issue, but with Discogs OAuth. Apparently, Discogs uses OAuth 1, and as @boradatti mentioned in the linked discussion thread, extendSocialite() has a third parameter. I added the third parameter that was missing and and it worked after that.

AppServiceProvider.php

public function boot(): void
{
    Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
        $event->extendSocialite('discogs', \SocialiteProviders\Discogs\Provider::class, \SocialiteProviders\Discogs\Server::class);
    });
}

@muhghazaliakbar
Copy link

Any news about this issue? 🙄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants