tgoop.com/abdullah_programs/5095
Last Update:
Facebook Login Function
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
import requests
def Login_Facebook(email,passs):
s = requests.session()
req = s.post(
url = "https://b-api.facebook.com/method/auth.login",
headers={
'content-type':'application/x-www-form-urlencoded',
'authority': 'b-api.facebook.com',
'accept-language': 'en-US,en;q=0.9',
'authorization': 'OAuth 200424423651082|2a9918c6bcd75b94cefcbb5635c6ad16',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko) [FBAN/MessengerLite;FBAV/115.0.0.2.114;FBPN/com.facebook.mlite;FBLC/ar_EG;FBBV/257412622;FBCR/Orange - STAY SAFE;FBMF/Xiaomi;FBBD/xiaomi;FBDV/Redmi 7;FBSV/9;FBCA/arm64-v8a:null;FBDM/{density=2.0,width=720,height=1369};]',
},
data=f"email={email}&password={passs}&credentials_type=password&error_detail_type=button_with_disabled&format=json&device_id=cdc4558c-4dd4-4fd0-9ba6-d09e0223d5e5&generate_session_cookies=1&generate_analytics_claim=1&generate_machine_id=1&method=auth.login"
)
if "Invalid username or password" in req.text:
return "Invalid username or password"
elif "session_key" in req.text:
return "Success Login"
elif "User must verify" in req.text:
return "User must verify"
elif "User must confirm" in req.text:
return "User must confirm"
else:
return "Error"
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
DEV @Abdullah_Coder
CH @Abdullah_Programs
BY Abdullah programs
Share with your friend now:
tgoop.com/abdullah_programs/5095