OP 24 February, 2020 - 04:24 PM
Code:
import requests
def main(account):
api = "https://graph.facebook.com/{0}/friendrequests?method=post&?access_token=".format(account)
headers = {"User-Agent":"Mozilla 5.0 (Firefox)"}
r = requests.get(api+token,headers=headers)
print(r.json())
if __name__=="__main__":
token = input("Token : ")
main(input("Account ID : ")) # to add