huylinhn 0 Posted June 26, 2015 Report Share Posted June 26, 2015 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 Quote Link to post Share on other sites
Brutal 164 Posted June 27, 2015 Report Share Posted June 27, 2015 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. Quote Link to post Share on other sites
jpeter 1 Posted July 1, 2015 Report Share Posted July 1, 2015 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? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.