Social network connection

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Social network connection

Post by Robert_in_MTL »

Hi,

For dev purposes, we need to have a connexion on social networks accounts to keep them alive

let's say I want a Facebook or twitter or linkedin account to be accessed by a request once a week to keep them alive. Only a simple account access, nothing else...

for starters, we need to keep alive a Facebook page and a Facebook personnal account...

I looked at the URL and HTTP tests but can't figure out how to connect to the account.

has anyone done that here before?

Thanks in advance for your help.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Look at web server first. You should check how exactly server wants to receive user name, password, some additional info...
I see the following code at www.facebook.com

Code: Select all

<form id="login_form" action="https://www.facebook.com/login.php?login_attempt=1" method="post" onsubmit="return window.Event && Event.__inlineSubmit && Event.__inlineSubmit(this,event)"><input type="hidden" name="lsd" value="AVoYA3UR" autocomplete="off" /><table cellspacing="0"><tr><td class="html7magic"><label for="email">Email or Phone</label></td><td class="html7magic"><label for="pass">Password</label></td></tr><tr><td><input type="text" class="inputtext" name="email" id="email" value="" tabindex="1" /></td><td><input type="password" class="inputtext" name="pass" id="pass" tabindex="2" /></td><td><label class="uiButton uiButtonConfirm" id="loginbutton" for="u_0_c"><input value="Log in" tabindex="4" type="submit" id="u_0_c" /></label></td></tr><tr><td class="login_form_label_field"><div><div class="uiInputLabel clearfix uiInputLabelLegacy"><input id="persist_box" type="checkbox" name="persistent" value="1" tabindex="3" class="uiInputLabelInput uiInputLabelCheckbox" /><label for="persist_box" class="uiInputLabelLabel">Keep me logged in</label></div><input type="hidden" name="default_persistent" value="0" /></div></td><td class="login_form_label_field"><a rel="nofollow" href="https://www.facebook.com/recover/initiate">Forgotten your password?</a></td></tr></table><input type="hidden" autocomplete="off" name="timezone" value="" id="u_0_b" /><input type="hidden" name="lgnrnd" value="090738_QTf5" /><input type="hidden" id="lgnjs" name="lgnjs" value="n" /><input type="hidden" autocomplete="off" id="locale" name="locale" value="en_GB" /></form>
Looks like you need to sent POST request to https://www.facebook.com/login.php?login_attempt=1
with the following data
lsd=AVoYA3UR
email=email_used_for_login
pass=password
default_persistent=1

Not sure how lsd field is used, may be server changes it from time to time, may be it depends on client IP, I sent several requests, field keeps this constant value.
You may ask facebook developers what exactly they need.

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Wow!
great reply! Thanks!

Maybe down the road I will need a test to get the lsd first to use it in my post...


I will try this

Thanks!
Post Reply