1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sending Invites to People to Like Your Post

Discussion in 'Social Networking Sites' started by dan_007, Jun 29, 2016.

  1. dan_007

    dan_007 Newbie

    Joined:
    Jun 29, 2016
    Messages:
    4
    Likes Received:
    0
    Hello,

    One of my posts on my Facebook page has gone "somewhat" viral with just over 10k likes and I am trying to invite everyone who like the post to like my page... I have a script to do this (it simply clicks on the Invite button, I also have to use multiple accounts due to the 500 invite limit a day).

    I also have a script that automatically clicks the "See more" button, although you can only get down about 4k people before the button gets stuck and no longer responds. It gets a blue outline as shown in the attached file.

    I have tried fiddling with code in inspect element but cannot seem it to work again.

    Anyone know of a fix?

    Cheers
     

    Attached Files:

  2. G-S-T

    G-S-T Executive VIP Jr. VIP

    Joined:
    Jan 20, 2011
    Messages:
    1,873
    Likes Received:
    8,874
    Occupation:
    Full time IM
    Location:
    Heavy in the game
    Try this, I havent used it in a while since facebook remove this feature once your page reaches a threshold for how many likes it has.

    Code:
    javascript:(function()%7Bvar maxCount %3D 450%3Bvar delayBetweenButtons %3D 100%3Bvar delayBetweenSeeMore %3D 500%3Bif (typeof(window.totalCount) %3D%3D%3D "undefined") %7Bwindow.totalCount %3D 0%3B%7Dfunction delayedClick(elem%2C delay) %7BsetTimeout(function () %7Belem.click()%3B%7D%2C delay)%3B%7Dfunction seeMore() %7Bvar btns %3D document.getElementsByClassName("pam uiBoxLightblue uiMorePagerPrimary")%3Bvar foundBtn %3D false%3Bfor (var x in btns) %7Bif (btns%5Bx%5D.text %3D%3D "See More") %7BfoundBtn %3D true%3Bbtns%5Bx%5D.click()%3B%7D%7Dif (foundBtn) %7BsetTimeout(seeMore%2C delayBetweenSeeMore)%3B%7D else %7Bvar btns %3D document.getElementsByClassName("_42ft _4jy0 _4jy3 _517h _51sy")%3Bvar invitesThisRound %3D 0%3Bfor (var x in btns) %7Bif (btns%5Bx%5D.text %3D%3D "Invite") %7Bvar y %3D btns%5Bx%5D%3BdelayedClick(y%2C delayBetweenButtons * invitesThisRound)%3BtotalCount%2B%2B%3Bif (totalCount >%3D maxCount) %7BsetTimeout(function() %7Balert("Reached " %2B totalCount %2B " invites total%2C did " %2B invitesThisRound %2B " this time")%3B%7D%2C delayBetweenButtons * invitesThisRound)%3Bbreak%3B%7D%7D%7DsetTimeout(function() %7Balert("Finished%2C total invites stand at%3A " %2B totalCount)%3B%7D%2C delayBetweenButtons * invitesThisRound)%3B%7D%7DseeMore()%7D)()
    
     
  3. dan_007

    dan_007 Newbie

    Joined:
    Jun 29, 2016
    Messages:
    4
    Likes Received:
    0
    Hi, thank you for the code but I seem to get this error when I execute it: expected expression, got '%".

    I apologise if I am doing this wrong!
     
  4. dan_007

    dan_007 Newbie

    Joined:
    Jun 29, 2016
    Messages:
    4
    Likes Received:
    0
    How did you get your code to run? I seem to be getting many errors.