Skip to content

Instantly share code, notes, and snippets.

@Ademking
Last active August 30, 2019 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ademking/9f6342df88beb0aba94d0e89542f7fa9 to your computer and use it in GitHub Desktop.
Save Ademking/9f6342df88beb0aba94d0e89542f7fa9 to your computer and use it in GitHub Desktop.
Facebook api links
1: Count the number of sent messages
https://graph.facebook.com/me/threads?limit=50&access_token=xxxxxxxxxxx

2: Delete the message
https://graph.facebook.com/id_tu_api_dem_tin_nhan?access_token=&method=delete

3: Get ds all your friends
https://graph.facebook.com/fql?q=SELECT+uid,+name,+friend_count,+subscriber_count+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())++ORDER+BY+rand()+LIMIT+5000&access_token=

4: get ds board blocked, faq
https://graph.facebook.com/fql?q=SELECT+id,+can_post,+name+FROM+profile+WHERE+id+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+AND+name+=+"Facebook+User"+ORDER+BY+rand()+LIMIT+5000&access_token=

5: get a friend invitation list
https://graph.facebook.com/?access_token=&batch=[{"name": "friendrequests", "method":"GET", "relative_url":"v1.0/me/friendrequests?limit=5000"}, {"method":"GET", "relative_url":"fql?q=SELECT uid, name, mutual_friend_count, sex FROM user WHERE uid IN ({result=friendrequests:$.data[*].from.id})"}]&include_headers=false&method=post

6: graph api search people
https://graph.facebook.com/search?type=user&q=tu_khoa_tim_kiem&limit=gioi_han_toi_da&fields=id,name&access_token=

7: Page
https://graph.facebook.com/search?type=page&q=tu_khoa_tim_kiem&limit=gioi_han_toi_da&=id,name,icon&access_token=

8: group
https://graph.facebook.com/search?type=group&q=tu_khoa_tim_kiem&limit=gioi_han_toi_da&=id,name,icon&access_token=

9: Scan group is doing admin join
https://graph.facebook.com/?method=post&access_token=&batch=[{"method":"GET","relative_url":"me"}, {"method":"GET","relative_url":"me/groups?fields=icon,administrator,name&limit=5000"}]&include_headers=false

10: scan group is involved
https://graph.facebook.com/?method=post&access_token=&batch=[{"method":"GET","relative_url":"me"}, {"method":"GET","relative_url":"me/groups?fields=icon,administrator,name&limit=5000"}]&include_headers=false

11: count like page
https://graph.facebook.com/fql?q=SELECT page_id, name, fan_count, access_token FROM page WHERE page_id IN (SELECT page_id FROM page_admin WHERE uid = me() ORDER by rand() LIMIT 5000)&access_token=

12: send message by id list
https://graph.facebook.com/me/threads?locale=en_US&to=[{"type":"id","id":"4","id":"4"}]&method=post&return_structure=true&message=1&link=2&name=3&picture=4&description=5&access_token=

13: invite page
https://graph.facebook.com/idPAGEEEEE/invited?method=post&invitee_id=id_can_moi&access_token=

14: Invited to the event
https://graph.facebook.com/idSuKien/invited?method=post&users=id_can_moi&access_token=

15: comment tag
https://graph.facebook.com/172689179864813/comments?method=post&access_token=&message=123 @[id_bb:0] @[id_bb:0]

16: share post on friend wall
https://graph.facebook.com/id_bb/feed?locale=en_US&method=post&return_structure=true&message=tin_nhan&link=Link_share&name=tieu_de_link&picture=link_anh&description=mo_ta&caption=trang_muon_fake&access_token=

17: share friend tag
https://graph.facebook.com/me/feed?method=post&access_token=&message=1&link=2&tags=id_bb,id_bb

18: share post gr
https://graph.facebook.com/id_post_can_share/sharedposts?to=id_group&locale=e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment