Learn R Programming

lares (version 5.1.0)

fb_post: Facebook Post Comments API

Description

Connect to an API Graph's token and get posts comments given the post(s) id.

Usage

fb_post(token, post_id, limit = 5000)

Arguments

token

Character. Valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one.

post_id

Character vector. Post id(s)

limit

Integer. Query limit

Value

data.frame with un-nested processed results fetched with API.

See Also

Other API: bring_api(), fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_posts(), fb_process(), fb_rf(), fb_token(), li_auth(), li_profile(), queryGA(), slackSend()

Other Facebook: fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_posts(), fb_process(), fb_rf(), fb_token()

Examples

Run this code
# NOT RUN {
token <- YOURTOKEN
ids <- c(POST_ID1, POST_ID2)

# Query 50 comments for two post ids
posts <- fb_post(token, ids, 50)
# }

Run the code above in your browser using DataLab