facebook.ex

Facebook Graph API Wrapper written in Elixir. Please note, this is very much a work in progress. Feel free to contribute using pull requests.

Installation

mix.exs

{:facebook,"0.1.0",[github: "mweibel/facebook.ex"]}

Visit hex.pm/packages/facebook or expm.co/facebook for package manager infos.

API

Facebook.me([fields: “yourfields”], “access_token”, options \ []) ->

Basic user infos of the logged in user (specified by the access_token). /1 takes either a list or string.

Facebook.myLikes(access_token, options \ []) ->

Likes of the currently logged in user (specified by the access_token)

Facebook.permissions(user_id, access_token, options \ []) ->

Retrieves a list of granted permissions the user has given for this application.

Facebook.set_appsecret(appsecret) ->

Facebook recommends securing requests using an appsecret proof. Set the appsecret if you would like to do so.