minimaloriginal / social-connect-bundle
The social connect bundle by MinimalOriginal
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5.9
- facebook/graph-sdk: ^5.6
- symfony/symfony: 3.3.*
This package is not auto-updated.
Last update: 2025-03-02 06:56:28 UTC
README
Register bundle
$bundles = [
...
new MinimalOriginal\SocialConnectBundle\MinimalOriginalSocialConnectBundle(),
];
Register routes
Add the bundle routes which indludes Facebook fallback
mo_social_connect:
resource: "@MinimalOriginalSocialConnectBundle/Resources/config/routing.yml"
User entity
The user entity have to implements the FacebookUserInterface (and which extends the Symfony's AdvancedUserInterface) because the FacebookUserProvider needs the followings methods : ⋅⋅* setEmail ⋅⋅* setUsername ⋅⋅* setEnabled ⋅⋅* setPlainPassword
use MinimalOriginal\SocialConnectBundle\Security\Core\User\FacebookUserInterface;
class User implements FacebookUserInterface
{
...
}
Configuration
minimal_original_social_connect:
auth:
facebook:
id: '%facebook_app_id%'
secret: '%facebook_app_secret%'