PHPackages                             tomatophp/filament-social - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. tomatophp/filament-social

ActiveLibrary[Templating &amp; Views](/categories/templating)

tomatophp/filament-social
=========================

Integration of social media platform actions and auth to your FilamentPHP panel

v1.0.0(1y ago)146713[3 issues](https://github.com/tomatophp/filament-social/issues)MITPHPPHP ^8.1|^8.2

Since Oct 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tomatophp/filament-social)[ Packagist](https://packagist.org/packages/tomatophp/filament-social)[ GitHub Sponsors](https://github.com/3x1io)[ RSS](/packages/tomatophp-filament-social/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

[![Screenshot](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/3x1io-tomato-social.jpg)](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/3x1io-tomato-social.jpg)

Filament Social Media Manager
=============================

[](#filament-social-media-manager)

[![Latest Stable Version](https://camo.githubusercontent.com/a1be852afc2c80e058b7a905c887d3c47728c481737f03c8343995415f45d2df/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d736f6369616c2f76657273696f6e2e737667)](https://packagist.org/packages/tomatophp/filament-social)[![License](https://camo.githubusercontent.com/e9c0356199aac156d7c6cb40737f8d7f4918f9f22f4eaa97181cd918a0442b95/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d736f6369616c2f6c6963656e73652e737667)](https://packagist.org/packages/tomatophp/filament-social)[![Downloads](https://camo.githubusercontent.com/406df8a9ff56a10cc8b2d5a0971446d487c37d4d83f56d3e5eeecee9bf138d02/68747470733a2f2f706f7365722e707567782e6f72672f746f6d61746f7068702f66696c616d656e742d736f6369616c2f642f746f74616c2e737667)](https://packagist.org/packages/tomatophp/filament-social)

Integration of social media platform actions and auth to your FilamentPHP panel

Screenshots
-----------

[](#screenshots)

[![Dark](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/dark.png)](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/dark.png)[![Register](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/register.png)](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/register.png)[![Login](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/register.png)](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/register.png)[![Share Buttons](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/share-buttons.png)](https://raw.githubusercontent.com/tomatophp/filament-social/master/arts/share-buttons.png)

Features
--------

[](#features)

- Social Media Login/Register Pages
- Login With Facebook
- Login With Twitter
- Login With Discord
- Login With GitHub
- Login With Google
- Login With Snapchat
- Share Buttons Action
- Share Buttons Component
- Auto Share Posts To Twitter
- Auto Share Posts To Facebook

Installation
------------

[](#installation)

```
composer require tomatophp/filament-social
```

after install your package please run this command

```
php artisan filament-social:install
```

finally register the plugin on `/app/Providers/Filament/AdminPanelProvider.php`

```
->plugin(
    \TomatoPHP\FilamentSocial\FilamentSocialPlugin::make()
        ->socialLogin()
        ->socialRegister()
)
```

on your `User` model add the `TomatoPHP\FilamentSocial\Traits\InteractsWithSocials` trait

```
use TomatoPHP\FilamentSocial\Traits\InteractsWithSocials;

class User extends Authenticatable
{
    use InteractsWithSocials;
}
```

now on your `env` you need to add the social media keys

```
TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=
TWITTER_CLIENT_TOKEN=
TWITTER_REDIRECT_URI=https://tomatophp.test/login/twitter-oauth-2/callback

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URI=https://tomatophp.test/login/facebook/callback

DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_URL=https://tomatophp.test/login/discord/callback

SNAPCHAT_CLIENT_ID=
SNAPCHAT_CLIENT_SECRET=
SNAPCHAT_CALLBACK=https://tomatophp.test/login/snapchat/callback

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK=https://tomatophp.test/login/google/callback

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_URL=https://tomatophp.test/login/github/callback
```

and you need to allow services on your `config/services.php`

```
'twitter' => [
    'client_id' => env('TWITTER_CLIENT_ID'),
    'client_secret' => env('TWITTER_CLIENT_SECRET'),
    'client_token' => env('TWITTER_CLIENT_TOKEN'),
    'redirect' => env('TWITTER_REDIRECT_URI'),
],

'facebook' => [
    'client_id' => env('FACEBOOK_CLIENT_ID'),
    'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
    'redirect' => env('FACEBOOK_REDIRECT_URI'),
],

'discord' => [
    'client_id' => env('DISCORD_CLIENT_ID'),
    'client_secret' => env('DISCORD_CLIENT_SECRET'),
    'redirect' => env('DISCORD_URL'),
],

'snapchat' => [
    'client_id' => env('SNAPCHAT_CLIENT_ID'),
    'client_secret' => env('SNAPCHAT_CLIENT_SECRET'),
    'redirect' => env('SNAPCHAT_CALLBACK'),
],

'google' => [
    'client_id' => env('GOOGLE_CLIENT_ID'),
    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
    'redirect' => env('GOOGLE_CALLBACK'),
],

'github' => [
    'client_id' => env('GITHUB_CLIENT_ID'),
    'client_secret' => env('GITHUB_CLIENT_SECRET'),
    'redirect' => env('GITHUB_URL'),
],
```

Use Social Share Component
--------------------------

[](#use-social-share-component)

if you like to use share buttons to your view it's very easy to use our blade component

```

```

Use Social Share Action
-----------------------

[](#use-social-share-action)

you can use the share buttons actions like any action on the FilamentPHP and we have multi extend to support Table, Forms, and Pages

```
use TomatoPHP\FilamentSocial\Filament\Actions\SocialShareAction;

public function actions(): array
{
    return [
        SocialShareAction::make()
            ->inline()
            ->facebook()
            ->twitter()
            ->pinterest()
            ->reddit()
            ->telegram()
            ->whatsapp()
            ->linkedin()
            ->copy()
            ->print()
            ->mail()
    ];
}
```

you can use the button as a dropdown or you can use it as inline icons buttons using `->inline()` method

Social Auth Events
------------------

[](#social-auth-events)

we have 2 events that you can listen to

- `TomatoPHP\FilamentSocial\Events\SocialLogin`
- `TomatoPHP\FilamentSocial\Events\SocialRegister`

you can listen to these events and do your logic

Support Profile Picture And Username
------------------------------------

[](#support-profile-picture-and-username)

some platforms will not gave you an access to email but it will give you the username to support that we add a migration to change on `users` table you can copy it and run it on your own table if you are using a custom table

```
$table->string('profile_photo_path', 2048)->nullable();
$table->string('email')->nullable()->change();
$table->string('username')->nullable()->unique();
```

Publish Assets
--------------

[](#publish-assets)

you can publish config file by use this command

```
php artisan vendor:publish --tag="filament-social-config"
```

you can publish views file by use this command

```
php artisan vendor:publish --tag="filament-social-views"
```

you can publish languages file by use this command

```
php artisan vendor:publish --tag="filament-social-lang"
```

you can publish migrations file by use this command

```
php artisan vendor:publish --tag="filament-social-migrations"
```

Other Filament Packages
-----------------------

[](#other-filament-packages)

Checkout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2147eb2fca7ab5f0124d0fafd88ba2d2a5dfa3a0036fb8872d1084b7cba29366?d=identicon)[fadymondy](/maintainers/fadymondy)

---

Top Contributors

[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (5 commits)")

---

Tags

phplaraveltemplate

### Embed Badge

![Health badge](/badges/tomatophp-filament-social/health.svg)

```
[![Health](https://phpackages.com/badges/tomatophp-filament-social/health.svg)](https://phpackages.com/packages/tomatophp-filament-social)
```

###  Alternatives

[tomatophp/filament-wallet

Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder

3528.5k2](/packages/tomatophp-filament-wallet)[tomatophp/filament-subscriptions

Manage subscriptions and feature access with customizable plans in FilamentPHP

628.1k](/packages/tomatophp-filament-subscriptions)[tomatophp/filament-plugins

Manage your modules as a plugin system with plugin generator

644.7k2](/packages/tomatophp-filament-plugins)[tomatophp/filament-docs

Manage your documents and contracts all in one place with template builder

422.6k](/packages/tomatophp-filament-docs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
