From 80c911d2a86e24d6a10b854103f9dd92ac88d3af Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Mon, 2 Mar 2015 16:37:40 +0100 Subject: [PATCH] updated docs --- README.md | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 005e0b2..39e58be 100644 --- a/README.md +++ b/README.md @@ -28,19 +28,30 @@ You'll probably also need [phantomjs](http://phantomjs.org/) installed since the apps now depends on Meteor's [spiderable](http://docs.meteor.com/#spiderable) package. -#### Twitter Authentication +#### Twitter and/or Facebook Authentication -Create this file: `server/settings.coffee` with this content: +Create a `.json` file with this content: -```coffeescript -Meteor.startup -> - Accounts.loginServiceConfiguration.remove service : 'twitter' - Accounts.loginServiceConfiguration.insert - service: 'twitter' - consumerKey: 'Your API key' - secret: 'Your API secret' +```json +{ + "facebook": { + "appId": "your_facebook_app_id", + "secret": "your_facebook_app_secret" + }, + "twitter": { + "consumerKey": "your_twitter_app_token", + "secret": "your_facebook_app_secret" + } +} ``` +Then run or deploy your application using the `meteor` argument `--settings` +followed by a space and the path to your json file. + +__Example:__ `meteor --settings file.json` or `meteor deploy homework --settings file.json` + +The application will automatically adapt and show login buttons as needed. + ### License The MIT License (MIT)