This is a minimal example for getting a user's short-lived access token through OAuth flow:
- You can use it to query their data from Facebook's Graph API.
- You can exchange it for a long-lived token that lasts for 60 days.
$ git clone https://github.com/geofflangenderfer/facebook_login_hello_world.git
$ cd facebook_login_hello_world/
$ elm reactor
then navigate to src/static/index.html
src/static/facebook.js
contains all the calls to the facebook login sdksrc/static/main.js
is the compiled elm code fromsrc/Main.elm