powered by
Connect to an API Graph's token of a given page and get posts, comments, shares, and reactions of n posts (with no limits).
fb_posts( token, n = 150, limits = 100, comments = FALSE, shares = FALSE, reactions = FALSE )
Character. Valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one.
Integer. How many most recent posts do you need?
Integer. For each post, hoy many results do you need?
Boolean. Include in your query?
data.frame with un-nested processed results fetched with API.
Other API: bring_api(), fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_post(), fb_process(), fb_rf(), fb_token(), li_auth(), li_profile(), queryGA(), slackSend()
bring_api()
fb_accounts()
fb_ads()
fb_creatives()
fb_insights()
fb_post()
fb_process()
fb_rf()
fb_token()
li_auth()
li_profile()
queryGA()
slackSend()
Other Facebook: fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_post(), fb_process(), fb_rf(), fb_token()
# NOT RUN { token <- YOURTOKEN # Query latest 10 posts and 50 comments for each posts <- fb_posts(token, n = 10, limits = 50, comments = TRUE) # }
Run the code above in your browser using DataLab