Skip to content

Instantly share code, notes, and snippets.

@Ademking
Created January 27, 2023 15: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/be126b5a8028d82e265ca5490511420f to your computer and use it in GitHub Desktop.
Save Ademking/be126b5a8028d82e265ca5490511420f to your computer and use it in GitHub Desktop.
Auto Like facebook stories
  1. Open https://m.facebook.com/ and select any story

  2. Open DevTools and run this script

const main = async n => {
  const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
  console.log('Starting script...')

  for (let i = 0; i < n; i++) {
    document.querySelector('[data-sigil="m-stories-reply-reaction-li"]:nth-child(2)').click()
    await sleep(2000)
    document.querySelector('[data-sigil="m-stories-reply-reaction-li"]:nth-child(2)').click()
    await sleep(2000)
    document.querySelector('[data-sigil="m-stories-reply-reaction-li"]:nth-child(2)').click()
    await sleep(2000)
    document.querySelector('[data-sigil="m-stories-reply-reaction-li"]:nth-child(2)').click()
    await sleep(2000)
    document.querySelector('[data-sigil="m-stories-reply-reaction-li"]:nth-child(2)').click()
    await sleep(2000)
    document.querySelector('#story_viewer_navigation_buttons > span._3ln7').click()
    await sleep(2000)
  }
}

// This will like 50 stories
main(50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment