Skip to content

Instantly share code, notes, and snippets.

View fearocanity's full-sized avatar
💭
眠い

Fearocanity (けろさん) fearocanity

💭
眠い
  • Minato, Japan
  • 00:23 (UTC +09:00)
View GitHub Profile
@fearocanity
fearocanity / fbnoexpire.py
Created February 2, 2024 15:20
Python CLI that generates No Expiration Token on Facebook API
#!/usr/bin/env python3
"""
Script that Generates Never Expiring Token
Authored by: Fearocanity
Credit: https://stackoverflow.com/a/28418469
"""
import os
import json
import requests
[[ "${prev_frame}" == "1" ]] && message+="[Never Forget - Band Performance]"$'\n'
[[ "${prev_frame}" == "507" ]] && message+="[Performance Ends]"$'\n'
[[ "${prev_frame}" == "765" ]] && message+="[If I Could Be a Constellation - Band Performance]"$'\n'
[[ "${prev_frame}" == "1430" ]] && message+="[Performance Ends]"$'\n'
[[ "${prev_frame}" == "4975" ]] && message+="[End of Season 1]"$'\n'