Warn the user when trying to fetch a non-public facebook page.
This commit is contained in:
parent
8770c87389
commit
79ebdc4b39
1 changed files with 6 additions and 0 deletions
|
@ -164,6 +164,12 @@ EOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
//No captcha? We can carry on retrieving page contents :)
|
//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
|
$element = $html
|
||||||
->find('#pagelet_timeline_main_column')[0]
|
->find('#pagelet_timeline_main_column')[0]
|
||||||
->children(0)
|
->children(0)
|
||||||
|
|
Loading…
Reference in a new issue