get_facebook: Retrieves the number of Facebook likes, shares, and comments...

Description Usage Arguments Value Author(s) References Examples

Description

Takes a URL and returns a data frame with the original URL followed by the number of Facebook shares and comments. The function accepts the optional variable sleep.time (default=0) to avoid hitting API limits (if implemented). Use sleep.time to define the number of seconds the function will wait before proceeding to the next URL. If the URLs are shortened, you will have to first resolve them using the function get_url().

Usage

1
get_facebook(links, sleep.time = 0)

Arguments

links

URL to be tracked on Facebook

sleep.time

Number of seconds the function will wait before proceeding to the next URL (optional)

Value

Returns the original URL followed by the number of Facebook shares and comments.

Author(s)

Marco Bastos

References

Information about the Facebook API is available at <https://developers.facebook.com/>

Examples

1
get_facebook("http://www.google.com/")


Search within the SocialMediaMineR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.