Facebook.object_count
You're seeing just the function
object_count
, go back to Facebook module for more information.
Specs
object_count(scope(), object_id(), access_token()) :: num_resp()
Gets the number of elements that a scope has in a given object.
An object stands for: post, comment, link, status update, photo.
If you want to get the likes of a page, please see fan_count/2
.
Expected scopes:
:likes
:comments
Example
iex> Facebook.object_count(:likes, "1326382730725053_1326476257382367", "<Access Token>")
{:ok, 10}
iex> Facebook.object_count(:comments, "1326382730725053_1326476257382367", "<Access Token>")
{:ok, 5}
See:
Specs
object_count(reaction(), react_type(), object_id(), access_token()) :: num_resp()
Gets the number of reactions that an object has.
Expected react_type/0
:
:haha
:wow
:thankful
:sad
:angry
:love
:none
Examples
iex> Facebook.object_count(
:reaction,
:wow,
"769860109692136_1173416799336463",
"<Access Token>"
)
{:ok, 100}