Provides API wrappers for the Facebook Graph API
Summary↑
init() | Callback implementation of |
me(fields, access_token) | Basic user infos of the logged in user (specified by the access_token) |
me(fields, access_token, options) | Basic user infos of the logged in user (specified by the access_token) |
myLikes(access_token) | Likes of the currently logged in user (specified by the access_token) |
myLikes(access_token, options) | Likes of the currently logged in user (specified by the access_token) |
page(page_id, access_token) | Basic page information for the provided page_id |
page(page_id, access_token, fields, options) | Get page information for the specified fields for the provided page_id |
pageLikes(page_id, access_token) | Get the number of likes for the provided page_id |
permissions(user_id, access_token) | Retrieves a list of granted permissions |
permissions(user_id, access_token, options) | Retrieves a list of granted permissions |
set_appsecret(appsecret) | If you want to use an appsecret proof, pass it into set_appsecret: Facebook.set_appsecret(“appsecret”) |
start(type, args) | Start hook |
start_link() | Supervisor start |
Types ↑
fields :: list
response :: {:json, HashDict.t} | {:body, String.t}
options :: list
using_appsecret :: boolean
Functions
Callback implementation of :supervisor.init/1
.
Specs:
- me(fields, access_token) :: response
Basic user infos of the logged in user (specified by the access_token)
See: https://developers.facebook.com/docs/graph-api/reference/user/
Specs:
- me(fields, access_token, options) :: response
- me(fields :: String.t, access_token, options) :: response
Basic user infos of the logged in user (specified by the access_token).
See: https://developers.facebook.com/docs/graph-api/reference/user/
Specs:
- myLikes(access_token) :: response
Likes of the currently logged in user (specified by the access_token)
See: https://developers.facebook.com/docs/graph-api/reference/user/likes
Specs:
- myLikes(access_token, options) :: response
Likes of the currently logged in user (specified by the access_token)
See: https://developers.facebook.com/docs/graph-api/reference/user/likes
Specs:
- page(page_id :: integer | String.t, access_token) :: response
Basic page information for the provided page_id
See: https://developers.facebook.com/docs/graph-api/reference/page
Specs:
- page(page_id :: integer | String.t, access_token, fields, options) :: response
Get page information for the specified fields for the provided page_id
See: https://developers.facebook.com/docs/graph-api/reference/page
Specs:
- pageLikes(page_id :: integer | String.t, access_token) :: integer
Get the number of likes for the provided page_id
Specs:
- permissions(user_id :: integer | String.t, access_token) :: response
Retrieves a list of granted permissions
See: https://developers.facebook.com/docs/graph-api/reference/user/permissions
Specs:
- permissions(user_id :: integer | String.t, access_token, options) :: response
Retrieves a list of granted permissions
See: https://developers.facebook.com/docs/graph-api/reference/user/permissions
If you want to use an appsecret proof, pass it into set_appsecret: Facebook.set_appsecret(“appsecret”)
See: https://developers.facebook.com/docs/graph-api/securing-requests
Start hook
Supervisor start