Jump to content
UBot Underground

Making Facebook Page Switch w/ Sockets


Recommended Posts

So I'm kind of new to this whole sockets thing, but the speed and efficiency is really attractive compared to using the browser.  I'm probably going to buy Aymen's http post plugin w/ Socket code generator momentarily, but as of right now i'm just experimenting with the standard Ubot 5 socket functions to see if I can get them to do the type of things I need them to do for a project I'm about to start working on.

 

What I'm trying to accomplish at the moment is a basic facebook profile switch.  And what I mean by that is, when you have a facebook account w/ a few fan pages, you can switch your identity to one of your fan pages.

 

I've already accomplished this using the browser with by writing the following html code to the browser.

 

<form method="POST" action="https://www.facebook.com/identity_switch.php" >
  <input type="hidden" name="fb_dtsg" value="(scrape this variable from html)">
  <input type="hidden" name="user_id" value="(this is the id of the page you want to switch to.  This can be scraped from html)">
  <input type="hidden" name="url" value="http://www.facebook.com/">
  <input id= "button" type="submit" name="Button">
</form>

This works. You can save that code to html file, put in variables from your own account + fan page, load it in your browser, click it and your profile will change. However, I want to do this with sockets, not the browser and so far I haven't been able to accomplish it.
 
I've managed to successfully login to facebook using sockets, but when I try to do the http post on www.facebook.com/identity_switch.php, nothing happens.  I've added all of the relevant file parameters (fb_dtsg, user_id, url) but the profile won't switch.
 
Anyways, I'm looking for any insight as to whether or not what I am trying here can be accomplished with sockets and if it can, what am I missing?  Thanks!
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...