{"id":21973486,"url":"https://github.com/mzuvin/facebook-accesstoken-tool","last_synced_at":"2025-03-22T23:22:06.306Z","repository":{"id":178854270,"uuid":"146598083","full_name":"mzuvin/facebook-accesstoken-tool","owner":"mzuvin","description":"facebook accesstoken never expire with python login","archived":false,"fork":false,"pushed_at":"2018-08-29T12:47:36.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T17:56:12.008Z","etag":null,"topics":["access-token","facebook","facebook-api","facebook-graph-api","facebook-login","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzuvin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-29T12:41:28.000Z","updated_at":"2024-08-31T16:50:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b71a1b4c-c48f-402f-8d8b-f8e02127f9f3","html_url":"https://github.com/mzuvin/facebook-accesstoken-tool","commit_stats":null,"previous_names":["mzuvin/facebook-accesstoken-tool"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuvin%2Ffacebook-accesstoken-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuvin%2Ffacebook-accesstoken-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuvin%2Ffacebook-accesstoken-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuvin%2Ffacebook-accesstoken-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzuvin","download_url":"https://codeload.github.com/mzuvin/facebook-accesstoken-tool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245032751,"owners_count":20550150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-token","facebook","facebook-api","facebook-graph-api","facebook-login","python"],"created_at":"2024-11-29T15:27:31.818Z","updated_at":"2025-03-22T23:22:06.296Z","avatar_url":"https://github.com/mzuvin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# facebook-accesstoken-tool\nfacebook accesstoken never expire\n\n```python\nimport requests\nimport re\ndef get_token(username, password):\n    data = {\"email\" : username, \"pass\"  : password}\n    headers    = {\"User-Agent\": \"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36\"}\n    s = requests.Session()\n    s.get(\"http://www.facebook.com\")\n    s.post(\"https://www.facebook.com/login.php?login_attempt=1\u00261wv=110\", data=data)\n    r = s.get(\"https://www.facebook.com/\"+str(username), headers=headers)\n    regex = r\"access_token:\\\"([A-Za-z0-9]+)\\\"\"\n    token=re.findall(regex,r.text)\n    print token[0]\n    return token[0]\n\nget_token(\"username\",\"password\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzuvin%2Ffacebook-accesstoken-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzuvin%2Ffacebook-accesstoken-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzuvin%2Ffacebook-accesstoken-tool/lists"}