This is an example implementation of the Meteor accounts-merge package.
Run it like this:
$ git clone https://github.com/lirbank/meteor-accounts-merge-example.git
$ cd meteor-accounts-merge-example/
$ meteor
The example app is already configured with API keys for three login providers, but you should replace the API credentials with your own. It's done like this:
- Visit https://developers.facebook.com/apps
- Select "Apps", then "Create a New App". (You don't need to enter a namespace.)
- Select "Settings" and enter a "Contact Email". Then select "Add Platform" and choose "Website".
- Set Site URL to:
http://localhost:3000/
- Select "Status" and make the app and all its live features available to the general public.
- Select "Dashboard".
Now, copy over "App ID" and "App Secret" to the server/config.js
file.
- Visit https://code.google.com/apis/console/
- If necessary, "Create Project"
- Click "APIs & auth" and "Credentials" on the left
- Click the "Create New Client ID" button
- Choose "Web application" as the type
- Set Authorized Javascript Origins to:
http://localhost:3000/
- Set Authorized Redirect URI to:
http://localhost:3000/_oauth/google?close
- Click "Create Client ID"
Now, copy over "Client ID" and "Client secret" to the server/config.js
file.
- Visit https://dev.twitter.com/apps/new
- Set Callback URL to:
http://127.0.0.1:3000/_oauth/twitter?close
Now, copy over "Consumer key" and "Consumer secret" to the server/config.js
file.