c# - Facebook multi account -


I want to write a simple win-form tool for managing various social accounts.
I have a user problem Many Facebook accounts, when I try to log in as another user, I have to redirect the page to the webbrowser.
I tried to use the InternetSetOption and the INTERNET_SUPPRESS_COOKIE_PERSIST flag, but it seems that it does not help. How can I solve this problem?

Login Code

  var lParameters = New Dictionary & lt; String, Object & gt; (); lParameters ["client_id"] = APPID; LParameters ["redirect_uri"] = "https://www.facebook.com/connect/login_success.html"; lParameters ["response_type"] = "token"; LParameters ["display"] = "popup"; LParameters ["scope"] = "user_about_me"; Uri Leuree = M.Bookbook Client.Getlogin URL (LPRMATR); Main.webBrowser.Navigate (Luri);   

Added: Maybe I'm doing something wrong with InternetSetOption? Sorry for the newbie question. I really like it in this reply, it is very difficult ...

The most likely reason is that Facebook is setting a cookie with session IDs INTERNET_SUPPRESS_COOKIE_PERSIST makes the cookie non-persistent, the browser will be deleted or cleared after the browser session is ended so if If you are using the same example then they are still creatures Will be there.

You can terminate your browsing session InternetSetOption (0, 42, Zero, 0); (Taken from here :), then INTERNET_SUPPRESS_COOKIE_PERSIST and INTERNET_OPTION_END_BROWSER_SESSION (this is 42 devices) should be compiled and ready for new logins.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -