rfacebook

How to use map() with possibly()

核能气质少年 提交于 2021-02-20 09:42:31
问题 I am using map() to get post data from Facebook using the following code: posts_data <- map(posts$query_id, getPost, token = fb_oauth, n = 1000) However, some of the query_id observations are incorrect, or are shared events, which the API cannot retrieve and gives me an error like: Error in callAPI(url = url, token = token, api = api) : Unsupported get request. Object with ID '1816137521765810_1832190963493790' does not exist, cannot be loaded due to missing permissions, or does not support