Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bleacherreport/account_kit
API Client for Facebook's Account Kit
https://github.com/bleacherreport/account_kit
account-kit elixir facebook
Last synced: about 1 month ago
JSON representation
API Client for Facebook's Account Kit
- Host: GitHub
- URL: https://github.com/bleacherreport/account_kit
- Owner: bleacherreport
- License: apache-2.0
- Created: 2016-06-16T19:51:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T18:12:10.000Z (about 6 years ago)
- Last Synced: 2024-04-25T02:25:55.356Z (8 months ago)
- Topics: account-kit, elixir, facebook
- Language: Elixir
- Homepage: https://www.accountkit.com/
- Size: 21.5 KB
- Stars: 5
- Watchers: 18
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Account Kit
[![Hex pm](http://img.shields.io/hexpm/v/account_kit.svg?style=flat)](https://hex.pm/packages/account_kit)
[![Build Status](https://travis-ci.org/bleacherreport/account_kit.svg?branch=master)](https://travis-ci.org/bleacherreport/account_kit)
[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://github.com/bleacherreport/plug_logger_json/blob/master/LICENSE)An api client for Facebook Account Kit
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add account_kit to your list of dependencies in `mix.exs`:
def deps do
[{:account_kit, "~> 0.1.0"}]
end2. Ensure account_kit is started before your application:
def application do
[applications: [:account_kit]]
end## Required Configuration
You must supply the below credentials. You will receive a reminder error if they are missing.You should add the below snippet to config/config.exs or an environment specific config file
if you are using multiple facebook developer accounts for environments.config :account_kit,
api_version: "v1.0",
app_id: "valid_app_id",
app_secret: "valid_app_secret",
require_appsecret: true## Recommended Testing Setup
First setup acccount kit in your facebook developer account.Next install a web client to test with:
* `git clone https://github.com/santiblanko/Account-kit-sample-for-web`
* `cd Account-kit-sample-for-web`
* Modify the JS login callback to log the auth code to console instead of into an html element (I get an error if an HTML element is used).
* `python -m SimpleHTTPServer 9000`
* Have chrome console open and preserving logs
* Fill out the email or phone form to test either flow.
* Check the chrome console for the auth code
* You can then use the auth code with the api calls available in this client## Example API
Coming Soon## Contributing
Before submitting your pull request, please run:
* `mix credo --strict`
* `mix coveralls`
* `mix dialyzer`Please squash your pull request's commits into a single commit with a message and
detailed description explaining the commit.