summaryrefslogtreecommitdiff
path: root/providers/Facebook.php
diff options
context:
space:
mode:
Diffstat (limited to 'providers/Facebook.php')
-rw-r--r--providers/Facebook.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/providers/Facebook.php b/providers/Facebook.php
index b1a6291..5698b93 100644
--- a/providers/Facebook.php
+++ b/providers/Facebook.php
@@ -7,7 +7,8 @@ require_once('Item.php');
class Facebook extends \Providers\HtmlFeed {
- protected $_cacheTimeout = '5 minutes';
+ //protected $_cacheTimeout = '5 minutes';
+ protected $_cacheTimeout = '1 second';
protected function _getCachePath() {
return '../cache/facebook.%s';
@@ -17,6 +18,10 @@ class Facebook extends \Providers\HtmlFeed {
return sprintf('https://m.facebook.com/%s', $feed);
}
+ protected function __getUserAgent() {
+ return 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0';
+ }
+
protected function _parseFeedContent($tree) {
$items = [];
foreach ($tree->find('div[data-ft]') as $div) {