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

Snapchat Laravel Package

socialiteproviders/snapchat

Adds Snapchat as an OAuth provider for Laravel Socialite, letting users sign in with their Snapchat account. Install via Composer, configure your Snapchat client credentials, and use the familiar Socialite API to handle redirects and callbacks in your Laravel app.

Deep Wiki
Context7

Snapchat is a Socialite Providers driver that adds Snapchat OAuth 2.0 authentication to Laravel's Socialite package. Install it via Composer and let users sign in with Snapchat using the familiar Socialite::driver('snapchat') API — no custom OAuth code required.

  • Drop-in Socialite driver backed by Snapchat's OAuth 2.0 endpoints
  • One-line install: composer require socialiteproviders/snapchat
  • Configurable scopes for Snapchat Login and Marketing APIs
  • Automatic provider registration via a Laravel event listener
  • Compatible with Laravel 8+ and Socialite 5.x
Frequently asked questions about Snapchat
How do I install the Snapchat Socialite provider in Laravel?
Install it with Composer using composer require socialiteproviders/snapchat. Then register the SocialiteProviders manager service provider and the Snapchat SocialiteWasCalled listener according to the SocialiteProviders documentation. Finally, add your Snapchat client ID, client secret, and redirect URL to config/services.php.
How do I configure Snapchat OAuth credentials in Laravel?
Add a snapchat entry to config/services.php with your client_id, client_secret, and redirect values, preferably loaded from environment variables. The redirect must exactly match the callback URL registered in your Snapchat developer application. Clear Laravel's config cache after changing credentials.
How do I add Snapchat login with Socialite redirect and callback?
Create routes for redirect and callback, then use Socialite::driver('snapchat')->redirect() to send users to Snapchat. In the callback, call Socialite::driver('snapchat')->user() to retrieve the authenticated user and create or log in your Laravel user. Handle cancelled or failed authorizations gracefully.
Which Laravel versions does socialiteproviders/snapchat support?
This package is a subtree split of the SocialiteProviders Snapchat provider, so its Laravel and Socialite version support is defined by its Composer constraints and upstream releases. Check the package on Packagist or run composer show socialiteproviders/snapchat before upgrading Laravel. Use a tagged release that matches your laravel/framework and socialite requirements.
How do I request additional Snapchat OAuth scopes?
Use Socialite's scopes method where supported, for example Socialite::driver('snapchat')->scopes(['scope_name'])->redirect(). Snapchat defines the available scope names, so confirm them in Snapchat's OAuth documentation and in the provider source. Only request scopes your app actually needs.
How do I test Snapchat OAuth in Laravel without hitting Snapchat?
Mock the Socialite facade or the Snapchat driver in your feature tests so redirect and callback flows do not call Snapchat. Assert that your controller creates or logs in the expected user from a fake Socialite user object. Keep a small number of manual staging tests against real Snapchat credentials for integration confidence.
Why is my Snapchat Socialite login returning an invalid credentials error?
Check that the client ID and secret match the Snapchat app you are using and that the redirect URI is exactly the same as the one registered with Snapchat. Also confirm the Snapchat app is enabled for login and that you cleared Laravel's config cache after changing environment values. Review the OAuth error response for more specific details.
Is socialiteproviders/snapchat safe for production use?
It is a thin OAuth provider adapter for Laravel Socialite, so production safety depends on using HTTPS callbacks, keeping secrets in environment variables, validating OAuth state, and handling failed or cancelled logins. Use tagged releases and keep Laravel, Socialite, and the provider updated. Review the upstream SocialiteProviders code and your own callback logic before deploying.
What are alternatives to this Snapchat Socialite provider?
You can implement Snapchat OAuth directly with Laravel's HTTP client if you need full control over the flow. You can also use another maintained OAuth package or the upstream SocialiteProviders/Providers monorepo. Laravel Socialite itself ships official providers, but Snapchat support typically comes from community providers.
Where do I report bugs or contribute to the Snapchat provider?
Because this repository is a read-only subtree split, report issues and open pull requests against the upstream SocialiteProviders/Providers repository. Include your Laravel, Socialite, and provider versions plus clear reproduction steps. Contributions should follow the upstream project's guidelines.
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.
frankyso/ipaymu
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