Forum Discussion
arttykh
11 years agoNew Contributor
Hi ccdssv1,
thank for your reply.
I have managed to do it using get/post requests.
First I've send GET facebook login page:
Then I've parsed facebook login form with Property Transfer step to get required values for inputs.
In the last step I've send POST request with all required params:
After this I was signed in on my test web site.
thank for your reply.
I have managed to do it using get/post requests.
First I've send GET facebook login page:
GET https://www.facebook.com/login.php?skip_api_login=1&api_key=my_key&signed_next=1&next=https%3A%2F%2Fwww.facebook.com%2Fv1.0%2Fdialog%2Foauth%3Fredirect_uri%3Dhttps%253A%252F%252Fmy_site%252Fuser%252Fsignin%26scope%3Demail%252Cuser_about_me%252Cuser_birthday%26auth_type%3Drerequest%26client_id%3DmyID%26ret%3Dlogin&cancel_uri=https%3A%2F%2Fmy_site%2Fuser%2Fsignin%3Ferror%3Daccess_denied%26error_code%3D200%26error_description%3DPermissions%2Berror%26error_reason%3Duser_denied%23_%3D_&display=page
Then I've parsed facebook login form with Property Transfer step to get required values for inputs.
e.g: //*:input[@name="lsd"]/@value
In the last step I've send POST request with all required params:
POST https://www.facebook.com/login.php?login_attempt=1&next=https%3A%2F%2Fwww.facebook.com%2Fv1.0%2Fdialog%2Foauth%3Fredirect_uri%3Dhttps%253A%252F%252Fmy_site%252Fuser%252Fsignin%26scope%3Demail%252Cuser_about_me%252Cuser_birthday%26auth_type%3Drerequest%26client_id%my_id%26ret%3Dlogin
Body:
lsd=${#TestSuite#lsdValue}&api_key=${#TestSuite#apiKey}&display=page&enable_profile_selector=&legacy_return=1&profile_selector_ids=&skip_api_login=1&signed_next=1&trynum=1&timezone=${#TestSuite#timezoneValue}&lgnrnd=${#TestSuite#lgnrndValue}&lgnjs=${#TestSuite#lgnjsValue}&email=${#TestSuite#emailValue}&pass=${#TestSuite#passValue}&persistent=${#TestSuite#persistentValue}&default_persistent=${#TestSuite#defaultPersistentValue}&login=Log+in
After this I was signed in on my test web site.
Related Content
- 2 months ago
- 12 years ago
- 14 years ago
- 5 years ago
- 3 years ago
Recent Discussions
- 15 years ago