Từ đoạn code dưới đây các bạn có thể chuyển đổi lại.
[HIDEREPLY]
[/HIDEREPLY]
[HIDEREPLY]
PHP:
$profile_url = 'https://www.facebook.com/trankynhanit';
echo getUid($profile_url);
function getUid($profile_url){
$url = 'https://findmyfbid.com';
$options = array(
'url' => $profile_url
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, count($options));
curl_setopt($ch, CURLOPT_POSTFIELDS, $options);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
$result = curl_exec($ch);
curl_close($ch);
$check = json_decode($result, true);
if($check['id'] != ''){
return $check['id'];
}else{
return false;
}
}