'." ".$matches[2].",".$matches[5].",".($matches[2]+16).",".($matches[5]+16)."";
next($emoji);
}
$j='{'.text_extract($facebook_javascript, "emotes:{", "}").'}';
$emoji = json_decode_nice($j, true);
while($emote = current($emoji)) {
preg_match('/'.$emote.'.+?(-){0,1}([0-9]{1,3})(px){0,1} (-){0,1}([0-9]{1,3})(px){0,1}}/', $facebook_css, $matches);
print $emote." ".key($emoji)." ".key($emoji)." ".''." ".$matches[2].",".$matches[5].",".($matches[2]+16).",".($matches[5]+16)."";
next($emoji);
}
?>