PHP code example of mortezamasumi / fb-profile

1. Go to this page and download the library: Download mortezamasumi/fb-profile library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mortezamasumi / fb-profile example snippets


use Mortezamasumi\FbProfile\FbProfilePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FbProfilePlugin::make(),
        ]);
}

// In your User model — prepend the default fields, then append yours
public static function extraProfileComponents(): array
{
    return [
        \Filament\Forms\Components\TextInput::make('bio')->label('Bio'),
    ];
}

// Or define a full custom form
public static function customProfileForm(): array
{
    return [
        \Filament\Forms\Components\TextInput::make('first_name'),
    ];
}

$this->validate(['nid' => ['
bash
php artisan vendor:publish --tag="fb-profile-config"