Get support for dunglas/kdDoctrineGuardFacebookConnectPlugin
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
dunglas/kdDoctrineGuardFacebookConnectPlugin
Facebook Connect for symfony and sfGuard
kdDoctrineGuardFacebookConnectPlugin provides an easy way to sign into a symfony 1 application using a Facebook account. It extends sfDoctrineGuardPlugin.
Installation
-
Install and configure sfDoctrineGuardPlugin
-
Install kdDoctrineGuardFacebookConnectPlugin
# Example using git git submodule add http://github.com/dunglas/kdDoctrineGuardFacebookConnectPlugin.git plugins/kdDoctrineGuardFacebookConnectPlugin
-
Create your Facebook application
-
Enable the plugin in the
config/ProjectConfiguration.class.php
file after sfDoctrineGuardPlugin.class ProjectConfiguration extends sfProjectConfiguration { public function setup() { $this->enablePlugins('sfDoctrinePlugin'); $this->enablePlugins('sfDoctrineGuardPlugin'); $this->enablePlugins('kdDoctrineGuardFacebookConnectPlugin'); } }
-
Rebuild your database and classes
php symfony doctrine:build --all --and-load
-
Edit
app.yml
to match your Facebook application settingsall: facebook: appId: xxx # Your app id secret: yyy # Your app secret cookie: true # Use cookie script_lang: en_US # Facebook UI language
-
Edit
filters.yml
to enable the FacebookConnect filterrendering: ~ security: ~ # Facebook Connect facebook: class: kdDoctrineGuardFacebookConnectFilter # Remember me remember_me: class: sfGuardRememberMeFilter # insert your own filters here cache: ~ execution: ~
-
Enable the kdGuardAuthFacebookConnect module and set is a signin module in
settings.yml
all: .settings: # ... enabled_modules: [default, sfGuardAuth, kdGuardAuthFacebookConnect] login_module: kdGuardAuthFacebookConnect login_action: signin
-
Add the Facebook Login button JavaScript before the body end tag in your app's layout
... <?php include_slot('fb_connect') ?> </body> ...
-
Update your templates to use the route
kd_guard_signin
for signin andkd_guard_signout
for logout instead of the sfDoctrineGuard default routes -
Clear the cache with
php symfony cc
and enjoy!
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2