Проблемы с getPage в Rfacebook
[Я знаю об этом вопросе, но мой вывод отличается, включая фотографии, поэтому я предполагаю, что здесь другая проблема]
Я пытаюсь извлечь сообщения с сайтов Facebook с помощью Rfacebook, и я сталкиваюсь с несколькими проблемами:
1. Нет результатов за первые недели января - каждый год(хотя страницы публикуются и в начале января. Кажется, это не зависит от конкретного сайта или года)
> results <- getPage(page="theguardian",token=fb_oauth,n=200,since="2014-01-01",until="2014-01-15")
0 posts No public posts were found : theguardian
> results <- getPage(page="theguardian",token=fb_oauth,n=200,since="2015-01-01",until="2015-01-15")
0 posts No public posts were found : theguardian
> results <- getPage(page="theguardian",token=fb_oauth,n=200,since="2016-01-01",until="2016-01-15")
0 posts No public posts were found : theguardian
> results <- getPage(page="theguardian",token=fb_oauth,n=200,since="2017-01-01",until="2017-01-15")
0 posts No public posts were found : theguardian
> results <- getPage(page="bbcnews",token=fb_oauth,n=200,since="2017-01-01",until="2017-01-15")
0 posts No public posts were found : bbcnews
2. За 2012 и 2013 годы и январь 2014 года на странице отображаются только сообщения с фотографиями.
results <- getPage(page="theguardian",token=fb_oauth,n=150,since="2012-01-01",until="2012-12-31")
25 posts 50 posts 75 posts 100 posts 125 posts 150 posts > results$type
[1] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[19] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[37] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[55] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[73] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[91] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[109] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[127] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[145] "photo" "photo" "photo" "photo" "photo" "photo"
> results <- getPage(page="theguardian",token=fb_oauth,n=20,since="2013-01-01",until="2013-06-28")
20 posts > results$type
[1] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
> results <- getPage(page="theguardian",token=fb_oauth,n=20,since="2013-07-01",until="2013-12-31")
20 posts > results$type
[1] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
(тот же результат происходит для page="bbcnews", где я получаю только видео и фотографии, но без текстов)
До 2011-31-12 и с 2014 года это работает просто отлично:
> results <- getPage(page="theguardian",token=fb_oauth,n=20,since="2010-01-01",until="2011-12-31")
20 posts > results <- getPage(page="theguardian",token=fb_oauth,n=200,since="2010-01-01",until="2011-12-31")
25 posts 50 posts 75 posts 100 posts 125 posts 150 posts 175 posts 200 posts > results$type
[1] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo"
[27] "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "photo" "link" "link" "link" "link" "link" "photo" "link" "link" "link" "photo" "link" "link" "link" "link" "link"
[53] "link" "photo" "link" "link" "link" "photo" "link" "link" "link" "link" "photo" "link" "link" "link" "link" "photo" "link" "link" "link" "photo" "link" "link" "link" "link" "link" "photo"
[79] "link" "link" "link" "link" "link" "link" "link" "photo" "link" "link" "link" "photo" "link" "link" "link" "link" "photo" "link" "link" "link" "video" "link" "link" "link" "photo" "link"
[105] "link" "link" "link" "link" "photo" "link" "link" "link" "link" "photo" "link" "link" "photo" "link" "link" "link" "photo" "link" "link" "photo" "link" "link" "photo" "link" "photo" "link"
[131] "link" "link" "link" "link" "link" "link" "link" "link" "link" "link" "photo" "link" "link" "photo" "link" "link" "link" "link" "photo" "link" "link" "link" "link" "photo" "link" "photo"
[157] "photo" "link" "photo" "video" "photo" "link" "link" "link" "photo" "link" "link" "link" "photo" "link" "photo" "link" "link" "photo" "link" "link" "photo" "link" "link" "link" "link" "link"
[183] "link" "link" "link" "link" "link" "photo" "link" "link" "photo" "link" "link" "photo" "link" "link" "photo" "link" "link" "link"
> results <- getPage(page="theguardian",token=fb_oauth,n=20,since="2014-02-01",until="2014-06-28")
20 posts > results$type
[1] "link" "link" "link" "photo" "link" "link" "link" "link" "link" "link" "link" "link" "photo" "link" "link" "photo" "link" "link" "link" "link"
Кто-нибудь испытывал это и знает обходной путь или решение? Моя основная проблема - 2., то есть возврат только фото и видео, так как мне также нужны ссылки.