Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Weibo Laravel Package

socialiteproviders/weibo

Weibo OAuth provider for Laravel Socialite. Add Weibo login to your Laravel app with a lightweight Socialite driver, Composer installation, and standard OAuth flow configuration. Supports user authentication and profile retrieval via Weibo.

View on GitHub
Deep Wiki
Context7

[READ ONLY] Subtree split of the SocialiteProviders/Weibo Provider (see SocialiteProviders/Providers)

Frequently asked questions about Weibo
How do I install socialiteproviders/weibo in a Laravel app?
Run composer require socialiteproviders/weibo, then register the package's SocialiteWasCalled listener in your EventServiceProvider and add a services.weibo block to config/services.php. You also need WEIBO_CLIENT_ID, WEIBO_CLIENT_SECRET, and WEIBO_REDIRECT_URI in your environment. The package is a Socialite driver, so laravel/socialite and the SocialiteProviders Manager must already be installed.
Does socialiteproviders/weibo support Laravel 10 or Laravel 11?
Probably not out of the box. The last tagged release is from December 2020, which predates Laravel 9, 10, and 11 plus several Socialite major versions, so its Composer constraints may conflict with a modern app. Plan to loosen constraints, use the upstream monorepo dev branch with a commit SHA pin, or fork the driver. Verify against your lockfile before committing.
How do I configure Weibo OAuth credentials in Laravel?
Add a weibo entry to config/services.php using client_id, client_secret, and redirect values, then map them to WEIBO_CLIENT_ID, WEIBO_CLIENT_SECRET, and WEIBO_REDIRECT_URI in .env. The redirect URI must match what is registered and whitelisted in the Weibo Open Platform app. Clear config cache after changing these values.
How do I register the SocialiteWasCalled listener for Weibo?
In app/Providers/EventServiceProvider.php, add SocialiteProviders\Manager\SocialiteWasCalled::class to the $listen array and map it to SocialiteProviders\Weibo\WeiboExtendSocialite::class.'@handle'. This is the standard SocialiteProviders registration pattern and is required for Socialite::driver('weibo') to resolve. If the class name differs in your pinned version, check the package source.
Why does Weibo OAuth not return an email address?
Weibo's user payload is not shaped like Western providers and does not reliably include an email, so you cannot depend on email for account creation. Expect fields such as id or uid, screen_name, and localized profile data instead. Build account-linking logic or create a shadow user without an email, and normalize the Socialite User object explicitly.
How do I get the Weibo user profile after the OAuth callback?
Call Socialite::driver('weibo')->user() in your callback route after exchanging the code. The returned Socialite User object contains Weibo-specific mapping, so inspect and normalize id, nickname, avatar, and other fields before storing them. Confirm the current users/show response shape against the Weibo Open Platform docs because endpoints and permissions have changed over time.
Is socialiteproviders/weibo maintained and production-ready?
Treat it as a low-visibility community artifact: it is a read-only subtree split of the SocialiteProviders/Providers monorepo, has a small star count, and its last tag is from 2020. Bug fixes must go upstream to the monorepo, not this repository. For production, fork or pin a specific commit, test the OAuth round trip in CI, and verify Weibo app review and callback whitelisting.
What Laravel Socialite version does socialiteproviders/weibo require?
The driver extends Laravel\Socialite\Two\AbstractProvider and was released before several Socialite majors, so its composer.json constraints likely target an older Socialite line. Check the package's composer.json against your installed laravel/socialite version. If it does not resolve, use the upstream monorepo dev branch with a SHA pin or adjust constraints in a fork.
Can I use socialiteproviders/weibo without Laravel or with a separate identity provider?
No. It is designed only for Laravel applications that already use laravel/socialite and the SocialiteProviders Manager. If your authentication is centralized in a separate IdP or a non-Laravel service, integrate Weibo OAuth directly at that layer and let Laravel consume your own tokens. This package is an adapter, not a standalone OAuth client.
What are alternatives to socialiteproviders/weibo for Weibo login?
Use the upstream SocialiteProviders/Providers monorepo directly, fork and pin the Weibo driver internally, or implement Weibo OAuth against the Open Platform API yourself if you need tighter control. There is no official Laravel Socialite Weibo driver, so most alternatives are forks, monorepo pulls, or direct integration. Choose based on your Laravel version support and maintenance tolerance.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib