ProcessWire Social Login
This module provides simple way to allow social login via HybridAuth or a standard login, (*1)
It also offers a registration form and the ability to edit your user profile on your website., (*2)
This module was originally written by Mauro Mascia., (*3)
Compatibility for ProcessWire 3 and latest HybridAuth was added by Jens Martsch, (*4)
It creates a new page called /social-login/ which does quick social login or standard.
It creates also a page called /register/ in which a new user can create an account for the site.
It adds social_id field to user template, that is used to match with the social account,
as well a oauth field in which are saved all the social info of the user., (*5)
This module uses the HybridAuth PHP library:
HybridAuth goal is to act as an abstract API between your application and various
social APIs and identities providers such as Facebook, Twitter and Google., (*6)
Requirements
-
ProcessWire 3.0+, (*7)
-
Composer, (*8)
If you don't have composer installed, have a look here on how to get it: Composer Installation, (*9)
Installation
- In your processwire root directory run
composer require jmartsch/processwire-social-login
- If the automatic copy fails, copy the files
social-login.php
and register.php
from /site/modules/processwire-social-login/templates
folder to your /site/templates/
folder
- Enable fields to be shown under the profile and the register page
- Create a new app from Facebook Developers site: https://developers.facebook.com/apps/
- Go to the modules setting and enable Facebook
- Enter your App ID and the App Secret
- Start logging in by visiting the www.yoursite.com/social-login/