| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 허리디스크
- 채팅환전사기
- Sequoia
- 안전결제
- LFI
- 모의해킹
- ssrf
- ue4dumper
- aes
- EC2
- ChatGPT
- 많다..
- XSS
- shell_gpt
- 척추관협착증
- 취약점
- intelmac
- react2shell
- 내부확산
- AWS
- 네이버카페
- Malware Sample
- cve-2025-55182
- S3
- 중고나라
- mitmproxy
- Frida
- 변태는
- jeb_mcp
Archives
- Today
- Total
annyoung
Convert Facebook username to id 본문
Convert facebook username to id
Convert facebook id to username
프로젝트 때문에 python으로 페이스북 메시지를 보내려고 하는데 문제가 있다.
username으로 설정된 유저들은 메시지가 보내지지 않고 id로 설정된 유저들에게만 메시지가 보내지는 점이었다. 예를 들자면 다음과 같았다.
메시지 보내지는 경우 - Facebook.com/1000005841626 메시지 보내지지 않는 경우 - Facebook.com/John.smith |
그래서 구글링 결과 facebookd에서 convert할 수 있게 URL이 명시되어 있었다.
{
"id": "100008210675562",
"first_name": "\uacbd",
"gender": "female",
"last_name": "\ubcf4",
"link": "https://www.facebook.com/people/\ubcf4\uacbd/100008210675562",
"locale": "ko_KR",
"name": "\ubcf4\uacbd"
} |
이런식으로 JSON으로 뱉어줘서 사용하기가 편리하다.
끝.
'프로그래밍' 카테고리의 다른 글
| python unicode unescape (html unescape) (0) | 2015.11.07 |
|---|---|
| django standard install.. (0) | 2015.10.13 |
| [파밍 크롤러] pharming crawler (1) | 2015.01.28 |
| 악성코드 자동분석관리 시스템 with telegram-cli, pytg (0) | 2014.12.09 |
| Android eclipse 디렉토리 (0) | 2014.10.28 |
Comments