Insomnia  Index du Forum
 
 
 
Insomnia  Index du ForumFAQRechercherS’enregistrerConnexion

Login Facebook 0

 
Poster un nouveau sujet   Répondre au sujet    Insomnia Index du Forum -> Event ! -> Events !
Sujet précédent :: Sujet suivant  
Auteur Message
hanwand


Hors ligne

Inscrit le: 05 Mai 2016
Messages: 150
Localisation: Marseille

MessagePosté le: Mer 10 Jan - 05:13 (2018)    Sujet du message: Login Facebook 0 Répondre en citant




Login Facebook 0
> DOWNLOAD










By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. I know that using a webbrowser will make the job easier, but it's too bulky for me (50k mem usage). You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users. It worked this way and I successfully logged in. Learn more, including about available controls: Cookies Policy.FacebookEmail or PhonePasswordForgot account? Connect with friends and theworld around you on Facebook. it is nice . Email Sign Up or sign in with Google Facebook C# - HttpWebRequest POST (Login to Facebook) Ask Question up vote 18 down vote favorite 18 I'm trying to login to Facebook in my program and parse some information from there (like name, profile pic, etc). Learn more, including about available controls: Cookies Policy.FacebookEmail or PhonePasswordForgot account? Connect with friends and theworld around you on Facebook. –bkaid Dec 8 '11 at 6:02 I often have to use the webrwser control instead of the HttpWebRequest because of this type of reasons. string email = "email"; string pw = "pw"; string PostData = String.Format("email={0}&pass={1}", email, pw); CookieContainer cookieContainer = new CookieContainer(); HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(""); req.CookieContainer = cookieContainer; req.Method = "POST"; req.ContentLength = PostData.Length; req.ContentType = "application/x-www-form-urlencoded"; req.AllowAutoRedirect = true; req.UserAgent = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"; ASCIIEncoding encoding = new ASCIIEncoding(); byte[] loginDataBytes = encoding.GetBytes(PostData); req.ContentLength = loginDataBytes.Length; Stream stream = req.GetRequestStream(); stream.Write(loginDataBytes, 0, loginDataBytes.Length); HttpWebResponse webResp = (HttpWebResponse)req.GetResponse(); Stream datastream = webResp.GetResponseStream(); StreamReader reader = new StreamReader(datastream); webBrowser1.DocumentText = reader.ReadToEnd(); foreach (Cookie cookies in webResp.Cookies) { MessageBox.Show(cookies.Name + " " + cookies.Value); } What am I doing wrong here? Any help would be appreciated, many thanks! Smile edit: I found out how to do it shortly after I posted. I am sure it is not complicated. –Tono Nam Dec 8 '11 at 14:14 add a comment 5 Answers 5 active oldest votes up vote 34 down vote I'm glad you found your answer, I could login facebook using HttpWebRequest too, just like you said. .. You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users. CookieCollection cookies = new CookieCollection(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(" request.CookieContainer = new CookieContainer(); request.CookieContainer.Add(cookies); //Get the response from the server and save the cookies from the first request. // navigate to facebook w.Navigate(" // wait a little for (int i = 0; i 5) break; } catch { } } } shareimprove this answer edited Dec 14 '15 at 16:32 Mojtaba Rezaeian 2,16342135 answered Dec 8 '11 at 4:04 Tono Nam 9,81750207347 1 Facebook has an API for a reason scraping HTML is hardly a decent proposal for what the question proposes. Great, thx u very much. HttpWebResponse response = (HttpWebResponse)request.GetResponse(); cookies = response.Cookies; Second request: POST the form data and recover the cookies from the first request. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. This question tough me something new. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Log In Sign Up . private void button1Click(object sender, EventArgs e) { string email = "Your email"; string password = "your password"; // create a new browser WebBrowser w = new WebBrowser(); w.Dock = DockStyle.Fill; this.Controls.Add(w); // you may add the controll to your windows forms if you want to see what is going on // latter you may not chose to add the browser or you can even set it to invisible. Learn more, including about available controls: Cookies Policy.FacebookJoin or Log Into Facebook Email or PhonePasswordForgot account?Log InDo you want to join Facebook?Sign UpSign UpThis page isn't availableThe link you followed may be broken, or the page may have been removed.Go back to the previous page Go to News Feed Visit our Help CenterEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. –patryk.beza Sep 22 '12 at 15:07 You're welcome! but remember this is against FB Terms Of Service, since we do it for education purposes only, just use it wisely! Cheers patryk.beza –WhySoSerious Nov 18 '12 at 22:00 wow . .. thanks : ) –sm.abdullah Sep 12 '13 at 12:55 1 well, it's working but my problem is what happens if i want to surf after getting the cookies (i mean after login) ? –LikePod Aug 16 '15 at 22:34 3 didn't work. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. newStream.Close(); HttpWebResponse getResponse = (HttpWebResponse)getRequest.GetResponse(); using (StreamReader sr = new StreamReader(getResponse.GetResponseStream())) { string sourceCode = sr.ReadToEnd(); } This is one of lots ways that works with HttpWebRequest, also if you prefer using WebBrowser, it works acceptable using the following: webBrowser1.Navigate(" "",byteArray, "Content-Type: application/x-www-form-urlencoded"); What I just realized is that it doesn't work with the InternetSetCookie maybe the reason is because Cookies returned from Facebook have the "HttpOnly" attribute (true), and it can't be accessible by client-side script. Sign UpIts free and always will be.JavaScript is disabled on your browser.Please enable JavaScript on your browser or upgrade to a JavaScript-capable browser to register for Facebook.An error occurred. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count). rev2018.1.9.28319 . See photos and updates from friends in News Feed. I am sure there will be better solutions but i dont think I deserve the -1 for a working solution 5a02188284
facebook turn off page like notificationshow to see who likes a business page on facebookhow to hack own facebook passwordboton me gusta en mi web facebookcamp pendleton cheaters busted facebookfotos de perfil para facebook creativascopy and paste in facebook android appscript facebook chat emoticons barfacebook iphone chat invisiblegostaria de entrar no meu facebook


Revenir en haut
Publicité






MessagePosté le: Mer 10 Jan - 05:13 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    Insomnia Index du Forum -> Event ! -> Events ! Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1

 
Sauter vers:  

Index | Panneau d’administration | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Template lost-kingdom_Tolede created by larme d'ange
Powered by phpBB © 2001, 2005 phpBB Group
Traduction par : phpBB-fr.com