instagrapi icon indicating copy to clipboard operation
instagrapi copied to clipboard

[BUG] commenting on posts suspends the account

Open mokhtaridoust opened this issue 11 months ago • 2 comments

after using cl.media_comment for 7 times in one hour with long intervals, different texts different media ids, instagram detects that this behaviour is against terms and conditions (the activity doesn't follow Community Standards on spam). This has been tested with two different accounts, in between other requests or in a row order request. The consequence was accounts getting suspended for days.

To reproduce: def random_comment_generator: comment = "every time one different comment with the length between 6 to 20 words plus emojis" return comment

for media in input_medias: comment = random_comment_generator() cl.media_comment(media.id, comment) time.sleep(600)

after the loop comments more than 7 times, then the suspended page on your mobile app will appear to perform "appeal", and the notification mail image be aware that if it is for the first time, you might be able to recover your account quickly, but for the second time depends on instagram queue line, and less possible chance to return back your account. I was about to lose my main account, so use a temporary account to test this.

It is expected to be able to comment on posts without this suspend, the instagram limit is absolutely more than 7 comments in one hour.

to add more details, this has been verified that for every call of media_commet, a new "user_breadcrumb" and "idempotence_token" is generated. image

  • OS: Win
  • Python version 3.12
  • instagrapi version 2.1.3

mokhtaridoust avatar Dec 24 '24 10:12 mokhtaridoust

It is spam detection

sunmasters avatar Dec 25 '24 01:12 sunmasters

thanks for the feedback, to add more info, I received this massage that may help others to understand spam rules. image https://transparency.meta.com/policies/community-standards/spam/

mokhtaridoust avatar Dec 25 '24 14:12 mokhtaridoust