I'm trying to use the following code to parse a response from the Facebook API, and I get a strange error... below is the code and error... Any thoughts are greatly appreciated!
Link to code: How to get most popular Facebook post in R
The error I get is:
Error in myposts[[1]]$paging$"next" : $ operator is invalid for atomic vectors
Here is what the data looks like:
tail(myposts[[1]])
results in:
$paging
previous
"https://graph.facebook.com/74133697733/posts?access_token=###token###&limit=25&since=1361736602&__previous=1"
next
"https://graph.facebook.com/74133697733/posts?access_token=###token###&limit=25&until=1359727199"