diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index ef7538c..6483c11 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -146,7 +146,7 @@ class FacebookBridge extends BridgeAbstract{ } //No captcha? We can carry on retrieving page contents :) - $element = $html->find('[id^=PagePostsSectionPagelet-]')[0]->children(0)->children(0)->children(0); + $element = $html->find('#pagelet_timeline_main_column')[0]->children(0)->children(0)->children(0)->next_sibling()->children(0); if(isset($element)) { @@ -158,7 +158,7 @@ class FacebookBridge extends BridgeAbstract{ $item = new \Item(); - if($post->hasAttribute("data-time")) { + if (count($post->find('abbr')) > 0) { //Retrieve post contents $content = preg_replace('/(?i)>