/ig-giveaway

Instagram giveaways based on post comments

Primary LanguageGoMIT LicenseMIT

Captura de tela de 2024-01-31 01-59-09

About

ig-giveaway is a cli tool to do giveaways based on comments in an Instagram post

Install

go install github.com/o-mago/ig-giveaway@latest

or

Download one of the assets from the releases

or

Build from source

Usage

ig-giveaway

The options are:

  • Instagram user name: username to whom the post belongs to
  • Instagram post code: code from the post (can be retrieved in the post web URL)
  • Graph API Token: access token generated using the Graph Api Explorer
  • Number of mentions: minimum number of mentions the user must comment to be a contender
  • Number of winners: number of winner draws
  • Blocklist: users that will not be winners
  • Multiple entries per user: if true, allows user to have 1 entry per X mentions
  • Show all contenders animation: if true, show all contenders and rotate focus between them

Requirements

The Instagram's post code can be found in the path parameter of the url. E.g. https://www.instagram.com/p/C2unenNseJB/ post-code

To use the tool, you must create a meta developer account and an app with the Instagram's Graph API access: https://developers.facebook.com/apps/creation

Using the Graph Api Explorer, you must add these scopes: pages_show_list,instagram_basic,pages_read_engagement and click Generate Access Token. Use this token for the ig-giveaway

graph