diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php new file mode 100644 index 0000000..378ac76 --- /dev/null +++ b/bridges/FacebookBridge.php @@ -0,0 +1,79 @@ +returnError('No results for this query.', 404); + } else { + + $this->returnError('You must specify a Facebook username.', 400); + + } + + + + $element = $html->find("[id^=PagePostsSectionPagelet-]")[0]->children(0)->children(0); + + foreach($element->children() as $post) { + + $item = new \Item(); + + if($post->hasAttribute("data-time")) { + + //Clean the content of the page + $content = preg_replace('/(?i)>