<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Developer On Line - Latest Comments in Using Perl Against Facebook - Part I: Login</title><link>http://dol.disqus.com/</link><description></description><atom:link href="https://dol.disqus.com/using_perl_against_facebook_part_i_login/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 26 Jun 2010 17:03:52 -0000</lastBuildDate><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-58782127</link><description>&lt;p&gt;Would be nice to see a Perl program that could login to your account, and create facebook fanpages.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jerome Laramie</dc:creator><pubDate>Sat, 26 Jun 2010 17:03:52 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-35753957</link><description>&lt;p&gt;that should be "incorrect"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ftumsh</dc:creator><pubDate>Sun, 21 Feb 2010 17:53:38 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-35753897</link><description>&lt;p&gt;Well, you are unable to connect to the server. Either the net connection is failing or the username/password is correct.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ftumsh</dc:creator><pubDate>Sun, 21 Feb 2010 17:52:20 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-35690683</link><description>&lt;p&gt;why i use your script and got an error: 500 Connect failed: connect: Connection timed out; Connection timed out&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mark</dc:creator><pubDate>Sun, 21 Feb 2010 01:38:54 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-25669220</link><description>&lt;p&gt;#! /usr/bin/perl -w&lt;br&gt;use strict;&lt;br&gt;use diagnostics;&lt;/p&gt;&lt;p&gt;use HTTP::Cookies;&lt;br&gt;use LWP::UserAgent;&lt;/p&gt;&lt;p&gt;use Data::Dumper;&lt;/p&gt;&lt;p&gt;my $email; #stores our mail&lt;br&gt;my $password; #stores our password&lt;br&gt;my $user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6';&lt;/p&gt;&lt;p&gt;$email = 'foo'; #read the login e-mail&lt;br&gt;$password='bar'; #read the password&lt;/p&gt;&lt;p&gt;chomp($email); #remove last line&lt;br&gt;chomp($password);&lt;/p&gt;&lt;p&gt;my %postLoginData; #necessary post data for login&lt;br&gt;$postLoginData{'email'}=$email;&lt;br&gt;$postLoginData{'pass'}=$password;&lt;br&gt;$postLoginData{'persistent'}=1;&lt;br&gt;$postLoginData{'login'}='Login';&lt;/p&gt;&lt;p&gt;#set the headers, let's make this a Firefox browser!&lt;br&gt;my @header = ('Referer'=&amp;gt;'&lt;a href="http://www.facebook.com" rel="nofollow noopener" target="_blank" title="http://www.facebook.com"&gt;http://www.facebook.com&lt;/a&gt;', 'User-Agent'=&amp;gt;$user_agent);&lt;/p&gt;&lt;p&gt;my $cookie_jar = HTTP::Cookies-&amp;gt;new(file=&amp;gt;'fbkCookies.dat',autosave=&amp;gt;1, ignore_discard=&amp;gt;1);&lt;/p&gt;&lt;p&gt;my $ua = LWP::UserAgent-&amp;gt;new; #init browser&lt;br&gt;$ua-&amp;gt;cookie_jar($cookie_jar);&lt;/p&gt;&lt;p&gt;$ua-&amp;gt;get('&lt;a href="http://www.facebook.com/login.php'" rel="nofollow noopener" target="_blank" title="http://www.facebook.com/login.php'"&gt;http://www.facebook.com/log...&lt;/a&gt;, @header);&lt;/p&gt;&lt;p&gt;#here we actually login!&lt;br&gt;my $r = $ua-&amp;gt;post('&lt;a href="https://login.facebook.com/login.php'" rel="nofollow noopener" target="_blank" title="https://login.facebook.com/login.php'"&gt;https://login.facebook.com/...&lt;/a&gt;, \%postLoginData, @header);&lt;/p&gt;&lt;p&gt;# print 'Content: '.$r-&amp;gt;decoded_content;&lt;/p&gt;&lt;p&gt;#was login successful?&lt;br&gt;if($r-&amp;gt;content =~ /Incorrect Email/) {&lt;br&gt;    print "Login Failed...Quitting..\n";&lt;br&gt;}&lt;br&gt;else {&lt;br&gt;    print "..and we are in!";&lt;br&gt;    #let's go to the homepage&lt;br&gt;    $r = $ua-&amp;gt;get('&lt;a href="http://www.facebook.com/home.php',@header);" rel="nofollow noopener" target="_blank" title="http://www.facebook.com/home.php',@header);"&gt;http://www.facebook.com/hom...&lt;/a&gt;&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ftumsh</dc:creator><pubDate>Sun, 13 Dec 2009 16:43:40 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-23960623</link><description>&lt;p&gt;Hi,&lt;br&gt;    I am Programmer with &lt;a href="http://Chessboss.com" rel="nofollow noopener" target="_blank" title="Chessboss.com"&gt;Chessboss.com&lt;/a&gt;. &lt;a href="http://Chessboss.com" rel="nofollow noopener" target="_blank" title="Chessboss.com"&gt;Chessboss.com&lt;/a&gt; is absolutely FREE chess server where you can play chess,create your own tournament with players online. No Gambling and explicit talk. This website is purely meant to increase the fan-base of chess and for entertainment.  I Need your help to promote the FREE chess server around the world. I would like to be on your blog as i found it a useful and informative resource. By adding &lt;a href="http://chessboss.com" rel="nofollow noopener" target="_blank" title="chessboss.com"&gt;chessboss.com&lt;/a&gt; you will recognized and added as a top resource on our chess server. I really believe in FREE flow of information. I have included the code and title.&lt;/p&gt;&lt;p&gt;Please email me back with subject line of your URL for the featured resource code. This is to avoid spam and to make sure you get the award.&lt;/p&gt;&lt;p&gt;I hope you understand and co-operate with us.&lt;/p&gt;&lt;p&gt;Thank you,&lt;br&gt;Sophie Vierra&lt;br&gt;Programmer&lt;br&gt;&lt;a href="http://www.chessboss.com" rel="nofollow noopener" target="_blank" title="www.chessboss.com"&gt;www.chessboss.com&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sophie Vierra</dc:creator><pubDate>Tue, 24 Nov 2009 12:53:35 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-21387089</link><description>&lt;p&gt;Anybody has a complete script?  I'm having problems with this one.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cuboidgraphix</dc:creator><pubDate>Fri, 30 Oct 2009 16:06:45 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-8916417</link><description>&lt;p&gt;Ive got one.  I can login to facebook on multiple computers but, the one i use everyday now seems to have a virus preventing me logging into facebook.  I attempt to login with my user id or my friends and it goes straight to "page cannot be displayed"&lt;/p&gt;&lt;p&gt;No AV or malware program has picked anything up.  I have deleted some .exe and .dll to no avale&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mark</dc:creator><pubDate>Sat, 02 May 2009 00:48:29 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-7935603</link><description>&lt;p&gt;Go to Part II and see the comments. You will get your answer there.&lt;/p&gt;&lt;p&gt;&lt;a href="http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-ii.html" rel="nofollow noopener" target="_blank" title="http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-ii.html"&gt;http://developeronline.blog...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">made.</dc:creator><pubDate>Tue, 07 Apr 2009 08:54:24 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-7935464</link><description>&lt;p&gt;it always say "Incorrect Email/Password Combination&lt;br&gt;Facebook passwords are case sensitive. Please check your CAPS lock key. You may also try clearing your browser's cache and cookies by following these instructions."&lt;/p&gt;&lt;p&gt;even my password and email is correct...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">erika</dc:creator><pubDate>Tue, 07 Apr 2009 08:45:07 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-7935431</link><description>&lt;p&gt;why i cant log in to facebook???&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">erika</dc:creator><pubDate>Tue, 07 Apr 2009 08:42:39 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-6299957</link><description>&lt;p&gt;you can't ask $response for its "content" method because $response isn't getting set first.&lt;/p&gt;&lt;p&gt;You need to add "$response = " to the front of the first two $browser-&amp;gt;get() and $browser-&amp;gt;post() lines.  (As a comparison, the last line, the GET of home.php, does it correctly.)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Just Another Perl Sub-Hacker</dc:creator><pubDate>Mon, 16 Feb 2009 03:17:33 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-5738124</link><description>&lt;p&gt;Try the Part II at &lt;a href="http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-ii.html" rel="nofollow noopener" target="_blank" title="http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-ii.html"&gt;http://developeronline.blog...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;See the comments section&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">made.</dc:creator><pubDate>Sat, 31 Jan 2009 21:37:41 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-5735131</link><description>&lt;p&gt;me too .&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ali</dc:creator><pubDate>Sat, 31 Jan 2009 17:54:29 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-5534868</link><description>&lt;p&gt;i need to login at &lt;a href="http://facebook.com" rel="nofollow noopener" target="_blank" title="facebook.com"&gt;facebook.com&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">smart</dc:creator><pubDate>Sun, 25 Jan 2009 14:38:58 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-4804630</link><description>&lt;p&gt;Is it possible to see the entire sample code that you mention above ?&lt;br&gt;"The final Perl script has about 500 lines of code and can send messages, retrieve inbox and chat among others! ?&lt;/p&gt;&lt;p&gt;Thanks for the help and have a Happy New year!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jayme</dc:creator><pubDate>Wed, 31 Dec 2008 16:51:18 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-4316017</link><description>&lt;p&gt;i really want to get on this site&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">abay</dc:creator><pubDate>Wed, 10 Dec 2008 16:17:49 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-4005766</link><description>&lt;p&gt;Hi &lt;br&gt;thanks fr ur post. &lt;br&gt;can u tell me how to work with IE 7.0&lt;br&gt;and  how to get the inf fr&lt;br&gt;'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6';&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">narasimha</dc:creator><pubDate>Tue, 25 Nov 2008 10:43:11 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-3892403</link><description>&lt;p&gt;if your line 35 is &lt;br&gt;$response-&amp;gt;content =~ /Incorrect Email/&lt;/p&gt;&lt;p&gt;then probably the $response variable is not initialized properly.&lt;br&gt;Did you install Crypt::SSLeay? This will enable https for Perl.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">panefsky</dc:creator><pubDate>Wed, 19 Nov 2008 05:24:03 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-3892060</link><description>&lt;p&gt;After figuring out how to download the additional packages and adding these two lines at the beginning of the script:&lt;br&gt;use HTTP::Cookies;&lt;br&gt;use LWP::UserAgent;&lt;/p&gt;&lt;p&gt;Now am getting a new error:&lt;br&gt;Can't call method "content" on an undefined value at C:\FB\&lt;a href="http://script.pl" rel="nofollow noopener" target="_blank" title="script.pl"&gt;script.pl&lt;/a&gt; line 35&lt;/p&gt;&lt;p&gt;Any ideas!?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wael</dc:creator><pubDate>Wed, 19 Nov 2008 04:21:06 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-3891795</link><description>&lt;p&gt;Ok, this is my bad. It was a weird typo:&lt;br&gt;WRONG is:&lt;br&gt;$postLoginData{'email')=$email;&lt;/p&gt;&lt;p&gt;CORRECT is&lt;br&gt;$postLoginData{'email'}=$email;&lt;/p&gt;&lt;p&gt;The curlies {} have to much&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">panefsky</dc:creator><pubDate>Wed, 19 Nov 2008 03:23:45 -0000</pubDate></item><item><title>Re: Using Perl Against Facebook - Part I: Login</title><link>http://developeronline.blogspot.com/2008/10/using-perl-against-facebook-part-i.html#comment-3891771</link><description>&lt;p&gt;I'm getting the following errors:&lt;/p&gt;&lt;p&gt;syntax error at C:\FB\&lt;a href="http://script.pl" rel="nofollow noopener" target="_blank" title="script.pl"&gt;script.pl&lt;/a&gt; line 12, near "'email')"&lt;br&gt;Missing right curly or square bracket at C:\FB\&lt;a href="http://script.pl" rel="nofollow noopener" target="_blank" title="script.pl"&gt;script.pl&lt;/a&gt; line 40, at end of line&lt;/p&gt;&lt;p&gt;I downloaded ActivePerl and am trying the script&lt;br&gt;I might be doing smthg wrong coz am new to perl script.. I have knowledge in &lt;a href="http://vb.net" rel="nofollow noopener" target="_blank" title="vb.net"&gt;vb.net&lt;/a&gt; but couldnt find smthg similar written in &lt;a href="http://vb.net" rel="nofollow noopener" target="_blank" title="vb.net"&gt;vb.net&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wael</dc:creator><pubDate>Wed, 19 Nov 2008 03:18:42 -0000</pubDate></item></channel></rss>