Skip to contents

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

Usage

fb_post(token, post_id, limit = 100)

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 by pagination.

Value

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

Examples

if (FALSE) {
token <- YOURTOKEN
ids <- c(POST_ID1, POST_ID2)

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