facebook v0.13.2 Facebook.Stream
Provides stream functionalities for the Facebook Graph API paginated responses
See: https://developers.facebook.com/docs/graph-api/using-graph-api/#reading
Summary
Functions
Build a stream resource from a facebook paginated response with a custom define error handler and a maximum of retries
Types
Functions
Specs
new(Map.t, (error, retry -> any), pos_integer) :: Enumerable.t
Build a stream resource from a facebook paginated response with a custom define error handler and a maximum of retries
The user defined error handler can be used to log errors, delay next retry, raise an exception, etc. The default error handler sleeps 1 second between retries.
Examples
iex> stream = Facebook.pageFeed(:feed, “CocaColaMx”, “
Custom error handler with linear backoff
iex> feed = Facebook.pageFeed(:feed, “CocaColaMx”, “