Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Recently I approved friend request of a spammer by mistake ,after one hour I checked facebook again , i noticed that he posted spam all the groups where I am present. My question is is there any API to get friends groups and send join requests automatically , or am I hacked ?

share|improve this question
add comment

1 Answer

Facebook API gives information about the public groups you are in. This method does it -

https://graph.facebook.com/<user_id>/groups?access_token=<ACCESS_TOKEN>

It returns the data in following format -

{
   "data": [
      {
         "version": 1,
         "name": "The Magnet Link",
         "id": "358110224242411",
         "unread": 1,
         "bookmark_order": 999999999
      },
      {
         "version": 1,
         "name": "NIBS-Care For Mental Health",
         "id": "467292153287893",
         "unread": 9,
         "bookmark_order": 999999999
      },
      {
         "version": 1,
         "name": "Movie Lovers Group",
         "id": "110068659059974",
         "unread": 25,
         "bookmark_order": 999999999
      },
      {
         "version": 1,
         "name": "Book Keepers - A place for Book Lovers",
         "id": "208239532582598",
         "unread": 17,
         "bookmark_order": 9
      },
...

So, he can just use the API to get info about the groups you are in.

Although, it's not possible to send Join requests using the API.

share|improve this answer
    
Then hemay created scripts to send join request to groups –  Aboobacker Mk Jun 15 '12 at 0:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.