29/03/2026 19:02
#1
import requestsimport jsonimport osFB_TOKENS = [ "EAAD6V7os0gcBQp9PAyUhSZCNqWjvU9Qn1cE2EmPl2FbXfMcOAdipvPCdg3hqBbBpGNCIZC3efQvNdg9BdEnE4L804xKU4ZBZCcU5f1eQrD5hC4VC9NoHf1Bo9GEJnZBcsV6hKaskdtmwjmxSqrSYqA1ZCgIwRlZCZBEjV5qZBf6OHCzd9XcIUjC5sH4H2zJ9WZCQZDZD"]# =================================================def get_fb_id(input_str): if input_str.isdigit(): return input_str print(f"🔍 Đang chuyển đổi link sang UID...") try: api_url = f"https://ffb.vn/api/tool/get-id-fb?idfb={input_str}" response = requests.get(api_url, timeout=10).json() return response.get('id') except: return Nonedef fetch_fb_info(uid): fields = "id,is_verified,name,created_time,birthday,gender,relationship_status,subscribers.limit(0).summary(true),hometown,location,locale,timezone" for token in FB_TOKENS: try: url = f"https://graph.facebook.com/{uid}?fields={fields}&access_token={token}" res = requests.get(url, timeout=10).json() if "id" in res: return res elif "error" in res: print(f"❌ Lỗi Token: {res['error']['message']}") except Exception as e: print(f"Lỗi kết nối: {e}") continue return Nonedef main(): os.system('cls' if os.name == 'nt' else 'clear') print("========================================") print(" TOOL CHECK INFO FACEBOOK DIRECT") print("========================================") while True: print("\n" + "-"*40) input_data = input("📌 Nhập UID hoặc Link Facebook (gõ 'exit' để thoát): ").strip() if input_data.lower() == 'exit': break if not input_data: continue # 1. Chuyển đổi ID uid = get_fb_id(input_data) if not uid: print("❌ Không lấy được UID. Vui lòng kiểm tra lại link!") continue # 2. Lấy thông tin print(f"📡 Đang lấy thông tin cho UID: {uid}...") data = fetch_fb_info(uid) if data: followers = data.get('subscribers', {}).get('summary', {}).get('total_count', 0) created = data.get('created_time', 'Không công khai').replace('T', ' | ') print("\n✅ KẾT QUẢ TRUY VẤN:") print(f" 🆔 ID: {data.get('id')}") print(f" 📛 Tên: {data.get('name')}") print(f" 🚻 Giới tính: {data.get('gender', 'N/A')}") print(f" 🎂 Ngày sinh: {data.get('birthday', 'Không công khai')}") print(f" 💍 Tình trạng: {data.get('relationship_status', 'Không công khai')}") print(f" 🌍 Quê quán: {data.get('hometown', {}).get('name', 'Không công khai')}") print(f" 📡 Follow: {followers:,} người") print(f" 🕒 Ngày tạo: {created}") print(f" 🛡️ Xác minh: {'Đã tích xanh' if data.get('is_verified') else 'Chưa xác minh'}") else: print("❌ Không tìm thấy thông tin hoặc Token đã hết hạn.")if __name__ == "__main__": main()