dimanche 19 avril 2015

Facebook groups posting - security issue

I'm trying to make an application for my colleague. Since he has many fb groups, he wants to be able send posts automaticaly (not spam) to selected groups. I have written a small script which obtain access_token and then this script sends the posts.


The problem is, that facebook probably things that it's an unauthorized posting from his account which is not..


Here is the message he gets after tried to send a post to one of his groups:



We’ve Detected Suspicious Account Activity
It looks like your account has been spreading spam due to another person or website gaining access to some of your sensitive account information.

Sometimes this happens when spammers create a fake Page that offers you a great deal (ex: free plane tickets) in return for a specific piece of information from your account, like an access token.

We’ve secured your account, and will help clean up any recent account activity that didn’t come directly from you.


Is there a way to tell the facebook that no unwanted website or person gaining his info?



def post_to_1_group(test):

graph = facebook.GraphAPI(oauth_access_token)
groups = graph.get_object("me/groups")
group_id = groups['data'][1]['id']
graph.put_object(group_id, "feed", message=test)

Aucun commentaire:

Enregistrer un commentaire