Chào mừng!

Bằng cách đăng ký với chúng tôi, bạn sẽ có thể thảo luận, chia sẻ và nhắn tin riêng tư với các thành viên khác trong cộng đồng của chúng tôi.

Đăng ký ngay!
  • Chào Khách,
    Bạn cần liên hệ với admin ??? ZALO & TELEGRAM

Share Php code lấy id facebook bằng url

Tham gia
29/9/20
Bài viết
379
Lượt Thích
641
Coins
76,334
Từ đoạn code dưới đây các bạn có thể chuyển đổi lại.
[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;
    }
}
[/HIDEREPLY]
ổn ngay
 
Top Bottom
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock
No Thanks