exfacebook v0.1.1 Exfacebook.Api
Basic functions for accessing Facebook API.
Summary
Functions
Use delete_connections
to delete object from connections
Use delete_connections
for deleting items from connections using batch api
Use delete_object
to delete object from facebook data
Use delete_object
for deleting item from facebook data
Use get_connections
to read feed, home collections
Use get_connections
for getting collection using batch Facebook API
Use get_object
for getting object related attributes
Use get_object
for getting object related attributes as part of batch API
Returns hash of image data for passed id
Getting list of subscriptions for app, we don’t need to use user access token, it requires to have only app_id and secret
Pagination next_page
is using response from calls of get_connections
Use put_connections
for posting messages or other update actions
Use put_connections
for posting messages or other update actions
Subscribe to real time updates to object
id
- id of object to unsubscribe, in case if developer passed nil
unsubscribe would apply for all subscriptions for facebook app
Types
Functions
Use delete_connections
to delete object from connections
Example:
{:ok, response} = delete_connections(:me, :feed, %{})
Use delete_connections
for deleting items from connections using batch api
Use delete_object
to delete object from facebook data.
Example:
{:ok, response} = delete_connections(:me, :feed, %{})
Use delete_object
for deleting item from facebook data.
Use get_connections
to read feed, home collections.
Example:
{:ok, %{“data” => collection}} = get_connections(:me, :feed, %{fields: “id, name”})
Use get_connections
for getting collection using batch Facebook API.
Use get_object
for getting object related attributes
Example:
{:ok, %{“id” => id, “name” => name}} = get_object(:me, %{access_token: “access-token”, fields: “id, name”})
Use get_object
for getting object related attributes as part of batch API.
Returns hash of image data for passed id.
Getting list of subscriptions for app, we don’t need to use user access token, it requires to have only app_id and secret.
Pagination next_page
is using response from calls of get_connections
.
Example:
page0 = get_connections(...)
page1 = page0 |> next_page
page0 = page1 |> prev_page
Use put_connections
for posting messages or other update actions.
Example:
put_connections(:me, :feed, %{access_token: "access-token"}, %{message: "message-example"})
Use put_connections
for posting messages or other update actions.