I'm trying to extract the facebook user id of html, is it possible?
I'm trying in this way but does not return a result.
function get_subs($url){
$url = 'http://www.facebook.com/'.$url.'';
$url = get_data($url);
preg_match('/"profile_id": (.*?),/',$url,$result);
$return = preg_replace("/[^\d]/", "", $result[1]);
return $return;
}
$key = get_subs($url)