summaryrefslogtreecommitdiff
path: root/bridges/FacebookBridge.php
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@debian.org>2022-01-21 21:54:19 +0100
committerJohannes Schauer Marin Rodrigues <josch@debian.org>2022-01-21 21:54:19 +0100
commitabd4361bafba7f3751310d0e3066c066f480afb1 (patch)
tree1e127fe1201f20ad0c533e3190e7a7dce84c5bed /bridges/FacebookBridge.php
parentdaeb2c0913653d197fad2a75010cfc6034c6a9e8 (diff)
New upstream version 2022-01-20+dfsg1
Diffstat (limited to 'bridges/FacebookBridge.php')
-rw-r--r--bridges/FacebookBridge.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php
index c03de4e..6d56fba 100644
--- a/bridges/FacebookBridge.php
+++ b/bridges/FacebookBridge.php
@@ -1,10 +1,10 @@
<?php
class FacebookBridge extends BridgeAbstract {
- const MAINTAINER = 'teromene, logmanoriginal';
+ // const MAINTAINER = 'teromene, logmanoriginal';
const NAME = 'Facebook Bridge | Main Site';
const URI = 'https://www.facebook.com/';
- const CACHE_TIMEOUT = 300; // 5min
+ const CACHE_TIMEOUT = 1800; // 30min
const DESCRIPTION = 'Input a page title or a profile log. For a profile log,
please insert the parameter as follow : myExamplePage/132621766841117';
@@ -181,8 +181,7 @@ class FacebookBridge extends BridgeAbstract {
$this->getURI()
);
- $html = getSimpleHTMLDOM($touchURI, $header)
- or returnServerError('Failed loading facebook page: ' . $this->getURI());
+ $html = getSimpleHTMLDOM($touchURI, $header);
if(!$this->isPublicGroup($html)) {
returnClientError('This group is not public! RSS-Bridge only supports public groups!');
@@ -534,8 +533,7 @@ EOD;
CURLOPT_POSTFIELDS => http_build_query($captcha_fields)
);
- $html = getSimpleHTMLDOM($captcha_action, $header, $opts)
- or returnServerError('Failed to submit captcha response back to Facebook');
+ $html = getSimpleHTMLDOM($captcha_action, $header, $opts);
return $html;
}
@@ -560,8 +558,7 @@ EOD;
$header = array();
}
- $html = getSimpleHTMLDOM($this->getURI(), $header)
- or returnServerError('No results for this query.');
+ $html = getSimpleHTMLDOM($this->getURI(), $header);
}