I am trying to get the facebook page IDs from:
http://fanpagelist.com/category/top_users/view/list/sort/fans/page1
There's ~25 of them and they can be found by viewing the source code through the pattern /like_box.php?id=89562268312
. https://graph.facebook.com/89562268312/picture
, etc
<?php
$page = file_get_contents('http://fanpagelist.com/category/top_users/view/list/sort/fans/page1');
preg_match_all('graph.facebook.com,picture', $page, $result, PREG_SET_ORDER);
foreach ($result as $row) {
echo "<p><b>$row[1]</b> $row[2]</p>\n";
}
?>
The problem is i'm not trying to scrape a tag but a pattern.