From 79ebdc4b3974f63149b5fad90d50e45fb904393f Mon Sep 17 00:00:00 2001 From: teromene Date: Sat, 5 May 2018 13:49:49 +0100 Subject: [PATCH] Warn the user when trying to fetch a non-public facebook page. --- bridges/FacebookBridge.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index 7d6b2494..a5b328dc 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -164,6 +164,12 @@ EOD; } //No captcha? We can carry on retrieving page contents :) + //First, we check wether the page is public or not + $loginForm = $html->find('._585r', 0); + if($loginForm != null) { + returnServerError('You must be logged in to view this page. This is not supported by RSS-Bridge.'); + } + $element = $html ->find('#pagelet_timeline_main_column')[0] ->children(0)