Jump to content
UBot Underground

(Help) Javascript Does Not Load When Scrolling To Bottom Of The Page On Facebook To Get Id


Recommended Posts

Hi, I can login to facebook and navigate facebook member page, but when it scroll to the bottom, the javascript doesn't load to get more result. Safari and Chrome load fine. Dunno what i'm missing here, token or cookies...? Pls help! Below is the code

plugin command("SocketCommands.dll", "socket container") {
    plugin command("SocketCommands.dll", "socket set header", "User-Agent", "Safari")
    plugin command("SocketCommands.dll", "socket navigate", "GET", "https://www.facebook.com/")
    load html($plugin function("SocketCommands.dll", "$socket page html"))
    set(#lgnrnd,$find regular expression($plugin function("SocketCommands.dll", "$socket page html"),"(?<=lgnrnd\\\"\\svalue=\").*?(?=\\\")"),"Global")
    set(#lsd,$find regular expression($plugin function("SocketCommands.dll", "$socket page html"),"(?<=name=\"lsd\\\"\\svalue=\").*?(?=\"\\sautocomplete=\"off\".*<table\\scellspacing=\"0\")"),"Global")
    plugin command("SocketCommands.dll", "socket add parameter", "lgnrnd", #lgnrnd)
    plugin command("SocketCommands.dll", "socket add parameter", "lsd", #lsd)
    plugin command("SocketCommands.dll", "socket add parameter", "email", "username")
    plugin command("SocketCommands.dll", "socket add parameter", "pass", "pass")
    plugin command("SocketCommands.dll", "socket navigate", "POST", "https://www.facebook.com/login.php?login_attempt=1")
    set(#cookie,$plugin function("SocketCommands.dll", "$socket get cookies"),"Global")
    plugin command("SocketCommands.dll", "socket navigate", "GET", "https://www.facebook.com/")
    load html($plugin function("SocketCommands.dll", "$socket page html"))
    plugin command("SocketCommands.dll", "socket navigate", "GET", "https://www.facebook.com/groups/1669303489964647/members/")
    load html($plugin function("SocketCommands.dll", "$socket page html"))
    loop while($not($exists(<id="pagelet_timeline_medley_sports">))) {
        run javascript("window.setTimeout(function() \{
window.scrollTo(0, document.body.scrollHeight)
 \}, 500)")
        wait(1)
    }
}

Thanks very much

Link to post
Share on other sites

I'm not really familiar with facebook processes, but when I need to get to the bottom of the page in order to cause more items to be loaded/populated, I often just use the focus command and have it focus on something static on the bottom of the page.

 

I understand that fb may not give that option though.

Link to post
Share on other sites

I think you should navigate to that page, not to fire a GET request. Javascript works only if the HTML is loaded into your browser window. Or there might be something I have completely misunderstood?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...