minimaloriginal/social-connect-bundle

The social connect bundle by MinimalOriginal

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/minimaloriginal/social-connect-bundle

v0.1.1 2017-11-24 16:02 UTC

This package is not auto-updated.

Last update: 2025-10-26 10:11:08 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%'