Facebook

Provides API wrappers for the Facebook Graph API

See: https://developers.facebook.com/docs/graph-api

Source

Summary

init()

Callback implementation of :supervisor.init/1

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)

objectCount(atom1, object_id, access_token)

Gets the total number of people who commented an object. An object stands for: post, comment, link, status update, photo

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

pageFeed(page_id, access_token)

Feed of posts for the provided page_id. The maximum posts returned is 25, which is the facebook’s default

pageFeed(page_id, access_token, limit)

Get the feed of posts (including status updates) and links published by others or the page specified in 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

picture(user_id, type, access_token, options \\ [])

A Picture for a Facebook User

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

init()

Callback implementation of :supervisor.init/1.

Source
me(fields, access_token)

Specs:

Basic user infos of the logged in user (specified by the access_token)

See: https://developers.facebook.com/docs/graph-api/reference/user/

Source
me(fields, access_token, options)

Specs:

Basic user infos of the logged in user (specified by the access_token).

See: https://developers.facebook.com/docs/graph-api/reference/user/

Source
myLikes(access_token)

Specs:

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

See: https://developers.facebook.com/docs/graph-api/reference/user/likes

Source
myLikes(access_token, options)

Specs:

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

See: https://developers.facebook.com/docs/graph-api/reference/user/likes

Source
objectCount(atom1, object_id, access_token)

Gets the total number of people who commented an object. An object stands for: post, comment, link, status update, photo.

Example

iex> Facebook.objectCount(:comments, "1326382730725053_1326476257382367", "<Token>")
2

See: https://developers.facebook.com/docs/graph-api/reference/object/comments

Source
page(page_id, access_token)

Specs:

Basic page information for the provided page_id

See: https://developers.facebook.com/docs/graph-api/reference/page

Source
page(page_id, access_token, fields, options)

Specs:

Get page information for the specified fields for the provided page_id

See: https://developers.facebook.com/docs/graph-api/reference/page

Source
pageFeed(page_id, access_token)

Feed of posts for the provided page_id. The maximum posts returned is 25, which is the facebook’s default.

Example

iex> Facebook.pageFeed("CocaColaMx", "<Your Token>")

See: https://developers.facebook.com/docs/graph-api/reference/page/feed

Source
pageFeed(page_id, access_token, limit)

Get the feed of posts (including status updates) and links published by others or the page specified in page_id.

A limit of posts may be given. The maximim number that must be provided, is 100.

Example

iex> Facebook.pageFeed("CocaColaMx", "<Your Token>", 55)

See: https://developers.facebook.com/docs/graph-api/reference/page/feed

Source
pageLikes(page_id, access_token)

Specs:

Get the number of likes for the provided page_id

Source
permissions(user_id, access_token)

Specs:

Retrieves a list of granted permissions

See: https://developers.facebook.com/docs/graph-api/reference/user/permissions

Source
permissions(user_id, access_token, options)

Specs:

Retrieves a list of granted permissions

See: https://developers.facebook.com/docs/graph-api/reference/user/permissions

Source
picture(user_id, type, access_token, options \\ [])

Specs:

A Picture for a Facebook User

See: https://developers.facebook.com/docs/graph-api/reference/user/picture/

Source
set_appsecret(appsecret)

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

Source
start(type, args)

Start hook

Source
start_link()

Supervisor start

Source