mnoorenberghe / webtrees-facebook

Facebook integration for webtrees genealogy software
https://mnoorenberghe.github.io/webtrees-facebook/
GNU General Public License v2.0
13 stars 5 forks source link
authentication connect facebook login php webtrees

webtrees Facebook Module

Facebook integration for webtrees genealogy software.

All of the authentication is done on the server-side so no external JavaScript files are needed.

Installation

  1. Install the module by extracting/cloning the directory with the name facebook inside /modules_v3/.
  2. In the 'administration' section of your webtrees site, visit the 'Modules' page and check the box to enable the 'Facebook' module and then click 'Save'.
  3. If you don't have a Facebook Developer account, create one at https://developers.facebook.com/
  4. If you don't already have a Facebook application setup for the site, visit https://developers.facebook.com/apps/ and set one up by clicking 'Create a New App' from the Apps menu and specify a 'Display Name' and 'Category'.
    • Once the App is created, click the 'Settings' menu and put your domain name (e.g. example.com) in the 'App Domains' field.
    • Click 'Add platform', choose 'Website' and enter your 'Site URL' (e.g. http://example.com).
    • Click 'Save Changes'.
  5. Specify the Facebook API App ID and Secret at {WEBTREES_ROOT}/module.php?mod=facebook&mod_action=admin which is accessible as a 'Facebook' link from the bottom of the administration menu.

Known Issues

Development

Clone this repo into a facebook subdirectory of modules_v3/ in a webtrees installation.

Automated Tests

Tests are located in the tests/ directory. They use steward and php-webdriver.

Setup

brew install geckodriver
composer install
./vendor/bin/steward install
java -jar ./vendor/bin/selenium-server-standalone-3.1*.jar
./vendor/bin/steward run -vvv dev firefox