Guest User

How To Login Facebook C

a guest
Jan 10th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.78 KB | None | 0 0
  1.  
  2.  
  3. ********************
  4. How To Login Facebook C
  5. http://urlin.us/c0ly1
  6. (Copy & Paste link)
  7. ********************
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged c# facebook post login httpwebrequest or ask your own question. View All Notifications Email : * Password : * Remember me Forgot password? Login using C# Corner . –Tono Nam Dec 8 '11 at 5:13 I didn't mark it down! –Lloyd Dec 8 '11 at 5:15 Kk sorry about that. Nice, clean, complete example. 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. 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 . Create a new win forms application, add a button and paste that code inside. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. Learn more, including about available controls: Cookies Policy.FacebookSign UpLog into FacebookLog InForgot account? Sign up for FacebookEnglish (US)NederlandsFryskPolskiTrkeDeutschFranais (France)EspaolPortugus (Brasil)ItalianoSign UpLog InMessengerFacebook LiteMobileFind FriendsPeoplePagesPlacesGamesLocationsCelebritiesMarketplaceGroupsRecipesSportsLookMomentsInstagramLocalAboutCreate AdCreate PageDevelopersCareersPrivacyCookiesAd ChoicesTermsHelpSettingsActivity Log Facebook 2018. it is nice . I got a page saying cookie files are needed –Rony Tesler Aug 25 '15 at 0:09 show 5 more comments up vote 5 down vote Sometimes it is easier to use web browser and you can run that browser hidden in the background. I've already done this once using a WB anyway. No unread comment. .. In Focus LET'S CHECK: Do you need a Blockchain C# Corner Contribute An Article A Blog A News A Video A Link An Interview Question Ask a Question TECHNOLOGIES .NET C# How do I Node.js SharePoint .NET Core C# Corner HTML 5 Office Development SignalR .NET Standard Career Advice Internet & Web OOP/OOD Software Testing ADO.NET Chapters Internet of Things Open Source SQL Language Agile Development Cloud Ionic Operating Systems SQL Server Algorithms in C# Coding Best Practices iOS Philosophy Swift Android Cognitive Services JavaScript PHP TypeScript Angular Cortana Development JQuery Power BI UWP Architecture Current Affairs JSON Printing in C# Visual Studio Artificial Intelligence Cyber Security kotlin Progressive Web Apps Web Development ASP.NET Databases & DBA Leadership Project Management Windows Controls ASP.NET Core Design Patterns & Practices LINQ Python Windows Forms AWS DevOps Machine Learning Q# Windows Services Azure Dynamics CRM Microsoft 365 R Workflow Foundation Big Data Enterprise Development Microsoft Office React WPF Blockchain Entity Framework Mobile Development Robotics & Hardware Xamarin Bot Framework F# Multithreading Ruby on Rails XML Business Graphics Design Networking Servers Request a new Category View All ANSWERSBLOGSVIDEOSINTERVIEWSBOOKSNEWSEVENTSCHAPTERSANNUAL CONFERENCEMathura ConferenceXamarin DevConDelhi ConferenceStartup ConferenceHyderabad ConferenceChandigarh ConferenceCAREERJOBSTRAININGMOREConsultantsIDEASLINKSSTUDENTSMEMBERSSTORIESCertifications. HttpWebResponse response = (HttpWebResponse)request.GetResponse(); cookies = response.Cookies; Second request: POST the form data and recover the cookies from the first request. shareimprove this answer answered Dec 17 '11 at 2:38 WhySoSerious 1,3041515 Excellent! That was what I was looking for. Whatever you need to do. asked 6 years, 1 month ago viewed 56,661 times active 2 years ago Blog Take the 2018 Developer Survey Linked 5 C# Open web page in default browser with post data 0 WebClient/HttpRequest Navigating To Page After Login 0 Submitting POST form via c# 0 C# generate a cookie dynamically that site will accept? 0 C# - Facebook Login HttpWebRequest POST 0 Passing pameters from Desktop application to aspx page with url 1 Logon to facebook using web-request in powershell 4.0 1 Infinite cycle in login function (CookieCollection) 1 Login to a Website Programmaticaly in Asp.net Related 4858What is the difference between String and string in C#?1476Hidden Features of C#?2346Cast int to enum in C#1176JavaScript post request like a form submit1722What is the best way to iterate over a Dictionary in C#?1866What are the correct version numbers for C#?4068PUT vs. –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 . –djsony90 May 9 '16 at 7:42 add a comment up vote -4 down vote Are you tring to pass login parameter to facebook login page?? If yes,facebook not allow to do that by any way. Join Stack Overflow to learn, share knowledge, and build your career. See photos and updates from friends in News Feed. 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. // 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,17342135 answered Dec 8 '11 at 4:04 Tono Nam 9,82750207348 1 Facebook has an API for a reason scraping HTML is hardly a decent proposal for what the question proposes. here my cod for logout : public void Logout() { loginResult = PostRequest.HttpPost( " "fbdtsg=AQAsBT0t&ref=mb&h=Affnfe5MVZXT6Gj", cookieContainer); } after that the response i get is that the user is still conected shareimprove this answer answered Oct 11 '13 at 23:28 user1863359 1391720 add a comment up vote -1 down vote webbrowser1.navigate("www.facebook.com"); webbrowser1.GetElementByiId("email").value="your mail ID"; webbrowser1.GetElementByiId("pass").value="password"; HtmlElement form = webBrowser1.Document.GetElementById("FormID"); if (form != null) form.InvokeMember("submit"); shareimprove this answer answered Apr 2 '13 at 19:12 Amrenddra Kumar 191 1 Could you please add a comment that points out why you think your code is a solution to this issue? –Trinimon Apr 2 '13 at 19:31 there is no comment and this is just a way to fill the form automatically. 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. Learn more, including about available controls: Cookies Policy.FacebookEmail or PhonePasswordForgot account? Connect with friends and theworld around you on Facebook. Facebook sends a cookie everytime you visit it to see if you have cookies enabled, what I did was send a request to the login page of Facebook to get the cookies, then send another with the POST data. View All Messages No unread notification. HttpWebRequest/HttpWebResponse Cookies613How to make HTTP POST web request1493How does Facebook disable the browser's integrated Developer Tools? Hot Network Questions Does AWS offer a way to route HTTPS traffic to two different EC2 instances based on directory path? How much smaller were medieval farm animals in England than today? Definition of "telescope" How can I get players to a specific place without telling them where it is? Only Three Books: Restarting Physics after civilization collapses Dealing with aggressive student suspected to be cheating What limits the speed of a car? Spectre/meltdown on a GPU Did any computers use the Z80B? How to keep democracies from falling behind technologically? Under what conditions would humanoids evolve eyes in the backs of their heads? Which popular games have been studied mathematically? Why is 11 am + 1 hour == 12:00 pm? Can I drive Elon Musk's Tesla in 100 Years? How to measure small, spiky amounts of current? Draw a Hasse diagram with circles with 3 sectors How can I expand a quoted variable to nothing if it's empty? Is there a list of old browsers that only support TLS 1.0? Is a verbal response that directly expresses anger always the wrong choice? Fair treatment for employees always late due to public transport Why was there a robot in Rocky IV? Why was Harry Truman chosen to be Vice President in 1944? Can you make 1 1 1 1 = 5? How "scrambled" is the data on a RAID5 disk? more hot questions question feed lang-cs . 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! :) edit: I found out how to do it shortly after I posted. .. Here is an example using windows forms. Find more of what you're looking for with Facebook Search. Later you can get the inner html or perhaps download an image. Please try again.BirthdayMonthJanFebMarAprMayJunJulAugSepOctNovDecDay12345678910111213141516171819202122232425262728293031Year201820172016201520142013201220112010200920082007200620052004200320022001200019991998199719961995199419931992199119901989198819871986198519841983198219811980197919781977197619751974197319721971197019691968196719661965196419631962196119601959195819571956195519541953195219511950194919481947194619451944194319421941194019391938193719361935193419331932193119301929192819271926192519241923192219211920191919181917191619151914191319121911191019091908190719061905Why do I need to provide my birthday?FemaleMaleBy clicking Create Account, you agree to our Terms and that you have read our Data Policy, including our Cookie Use 5a02188284
Add Comment
Please, Sign In to add comment