<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Use perl to automatically delete your facebook wall posts!</title>
	<atom:link href="http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/</link>
	<description>So you don&#039;t have to!</description>
	<lastBuildDate>Wed, 30 Nov 2011 19:30:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Lonnie</title>
		<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/comment-page-1/#comment-4904</link>
		<dc:creator>Lonnie</dc:creator>
		<pubDate>Wed, 30 Nov 2011 19:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.oneduality.com/?p=474#comment-4904</guid>
		<description>Thanks for the update .. I&#039;ve personally not made any effort to update the perl script because I&#039;m instead using a bookmarklet ..

I snatched the code from cleanmywall.net ( or com, I forget now ) and modified it a bit and I simply use it.. I find it to be much nicer, it&#039;s also very fast.. 

It&#039;s simply a bookmarklet with a gui .. it will continue to function until facebook switches to the timeline feature which seems to be  a long time off at this point.</description>
		<content:encoded><![CDATA[<p>Thanks for the update .. I&#8217;ve personally not made any effort to update the perl script because I&#8217;m instead using a bookmarklet ..</p>
<p>I snatched the code from cleanmywall.net ( or com, I forget now ) and modified it a bit and I simply use it.. I find it to be much nicer, it&#8217;s also very fast.. </p>
<p>It&#8217;s simply a bookmarklet with a gui .. it will continue to function until facebook switches to the timeline feature which seems to be  a long time off at this point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to delete ALL your Facebook Wall Posts (as required by Facebook prior to deleting/deactivating your account) &#124; Rove Monteux</title>
		<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/comment-page-1/#comment-4903</link>
		<dc:creator>How to delete ALL your Facebook Wall Posts (as required by Facebook prior to deleting/deactivating your account) &#124; Rove Monteux</dc:creator>
		<pubDate>Wed, 30 Nov 2011 16:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.oneduality.com/?p=474#comment-4903</guid>
		<description>[...] script below is a fix of the script provided in &#8220;Use perl to automatically delete your facebook wall posts!&#8220;, as the new Facebook Wall broke the script, and is also an alternative to the Greasemonkey [...]</description>
		<content:encoded><![CDATA[<p>[...] script below is a fix of the script provided in &#8220;Use perl to automatically delete your facebook wall posts!&#8220;, as the new Facebook Wall broke the script, and is also an alternative to the Greasemonkey [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to delete ALL your Facebook Wall Posts (as required by Facebook prior to deleting/deactivating your account) &#171; Rove Monteux</title>
		<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/comment-page-1/#comment-4513</link>
		<dc:creator>How to delete ALL your Facebook Wall Posts (as required by Facebook prior to deleting/deactivating your account) &#171; Rove Monteux</dc:creator>
		<pubDate>Wed, 05 Jan 2011 11:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.oneduality.com/?p=474#comment-4513</guid>
		<description>[...] script below is a fix of the script provided in &#8220;Use perl to automatically delete your facebook wall posts!&#8220;, as the new Facebook Wall broke the script, and is also an alternative to the Greasemonkey [...]</description>
		<content:encoded><![CDATA[<p>[...] script below is a fix of the script provided in &#8220;Use perl to automatically delete your facebook wall posts!&#8220;, as the new Facebook Wall broke the script, and is also an alternative to the Greasemonkey [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PerlTidy</title>
		<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/comment-page-1/#comment-4268</link>
		<dc:creator>PerlTidy</dc:creator>
		<pubDate>Sun, 28 Nov 2010 13:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.oneduality.com/?p=474#comment-4268</guid>
		<description>Thank you and thanks to perltidy for that :


#!/usr/bin/perl
use WWW::Mechanize;
use HTTP::Cookies;
use HTML::Parser;
use HTML::TagParser;
my $username = &quot;EMAIL&quot;;
my $password = &quot;PASSWORD&quot;;
my $mech     = WWW::Mechanize-&gt;new();
$mech-&gt;agent_alias(&#039;Linux Mozilla&#039;);
$mech-&gt;cookie_jar( HTTP::Cookies-&gt;new() );
$mech-&gt;post(
&quot;https://login.facebook.com/login.php?m&amp;next=http://m.facebook.com/minifeed.php&quot;,
    { email =&gt; $username, pass =&gt; $password }
);
my $test = $mech-&gt;content();
$mech-&gt;content() =~ /url=(.*?)&quot;/;
my $newurl = $1;
$mech-&gt;get($newurl);
my $html   = $mech-&gt;content();
my $parser = HTML::Parser-&gt;new(
    api_version =&gt; 3,
    start_h     =&gt; [ &amp;start, &quot;tagname, attr&quot; ],
);
my @links;

sub start {
    my ( $tag, $attr ) = @_;
    if ( $tag =~ /^a$/ and defined $attr-&gt;{href} ) {
        return
          if ( $attr-&gt;{href} =~ m!^http://! and $opts{r} )
          ;    # exclude absolute url when -r
        return
          if ( $attr-&gt;{href} !~ m!http://! and $opts{a} )
          ;    # exclude relative url when -a
        push @links, $attr-&gt;{href};
    }
}
$parser-&gt;parse($html);
$parser-&gt;eof;
foreach $link (@links) {
    if ( $link =~ /delete.php/ ) {
        $mech-&gt;get( &quot;http://m.facebook.com&quot; . $link );
        $html_p  = HTML::TagParser-&gt;new( $mech-&gt;content() );
        @elem    = $html_p-&gt;getElementsByTagName(&quot;form&quot;);
        $action  = $elem[0]-&gt;getAttribute(&quot;action&quot;);
        @elem    = $html_p-&gt;getElementsByAttribute( &quot;name&quot;, &quot;fb_dtsg&quot; );
        $fb_dtsg = $elem[0]-&gt;getAttribute(&quot;value&quot;);
        @elem    = $html_p-&gt;getElementsByAttribute( &quot;name&quot;, &quot;ministory_key&quot; );
        $ministory_key = $elem[0]-&gt;getAttribute(&quot;value&quot;);
        @elem       = $html_p-&gt;getElementsByAttribute( &quot;name&quot;, &quot;story_type&quot; );
        $story_type = $elem[0]-&gt;getAttribute(&quot;value&quot;);
        @elem       = $html_p-&gt;getElementsByAttribute( &quot;name&quot;, &quot;profile_id&quot; );
        $profile_id = $elem[0]-&gt;getAttribute(&quot;value&quot;);
        @elem       = $html_p-&gt;getElementsByAttribute( &quot;name&quot;, &quot;confirm&quot; );
        $confirm_id = $elem[0]-&gt;getAttribute(&quot;value&quot;);
        print &quot;Deleting mini story key: $ministory_key..n&quot;;
        $mech-&gt;post(
            &quot;http://m.facebook.com&quot; . $action,
            {
                fb_dtsg       =&gt; $username,
                ministory_key =&gt; $ministory_key,
                story_type    =&gt; $story_type,
                profile_id    =&gt; $profile_id,
                confirm_id    =&gt; $confirm_id
            }
        );
        sleep(5);
    }
}</description>
		<content:encoded><![CDATA[<p>Thank you and thanks to perltidy for that :</p>
<p>#!/usr/bin/perl<br />
use WWW::Mechanize;<br />
use HTTP::Cookies;<br />
use HTML::Parser;<br />
use HTML::TagParser;<br />
my $username = &#8220;EMAIL&#8221;;<br />
my $password = &#8220;PASSWORD&#8221;;<br />
my $mech     = WWW::Mechanize-&gt;new();<br />
$mech-&gt;agent_alias(&#8216;Linux Mozilla&#8217;);<br />
$mech-&gt;cookie_jar( HTTP::Cookies-&gt;new() );<br />
$mech-&gt;post(<br />
&#8220;https://login.facebook.com/login.php?m&amp;next=http://m.facebook.com/minifeed.php&#8221;,<br />
    { email =&gt; $username, pass =&gt; $password }<br />
);<br />
my $test = $mech-&gt;content();<br />
$mech-&gt;content() =~ /url=(.*?)&#8221;/;<br />
my $newurl = $1;<br />
$mech-&gt;get($newurl);<br />
my $html   = $mech-&gt;content();<br />
my $parser = HTML::Parser-&gt;new(<br />
    api_version =&gt; 3,<br />
    start_h     =&gt; [ &amp;start, "tagname, attr" ],<br />
);<br />
my @links;</p>
<p>sub start {<br />
    my ( $tag, $attr ) = @_;<br />
    if ( $tag =~ /^a$/ and defined $attr-&gt;{href} ) {<br />
        return<br />
          if ( $attr-&gt;{href} =~ m!^http://! and $opts{r} )<br />
          ;    # exclude absolute url when -r<br />
        return<br />
          if ( $attr-&gt;{href} !~ m!http://! and $opts{a} )<br />
          ;    # exclude relative url when -a<br />
        push @links, $attr-&gt;{href};<br />
    }<br />
}<br />
$parser-&gt;parse($html);<br />
$parser-&gt;eof;<br />
foreach $link (@links) {<br />
    if ( $link =~ /delete.php/ ) {<br />
        $mech-&gt;get( &#8220;http://m.facebook.com&#8221; . $link );<br />
        $html_p  = HTML::TagParser-&gt;new( $mech-&gt;content() );<br />
        @elem    = $html_p-&gt;getElementsByTagName(&#8220;form&#8221;);<br />
        $action  = $elem[0]-&gt;getAttribute(&#8220;action&#8221;);<br />
        @elem    = $html_p-&gt;getElementsByAttribute( &#8220;name&#8221;, &#8220;fb_dtsg&#8221; );<br />
        $fb_dtsg = $elem[0]-&gt;getAttribute(&#8220;value&#8221;);<br />
        @elem    = $html_p-&gt;getElementsByAttribute( &#8220;name&#8221;, &#8220;ministory_key&#8221; );<br />
        $ministory_key = $elem[0]-&gt;getAttribute(&#8220;value&#8221;);<br />
        @elem       = $html_p-&gt;getElementsByAttribute( &#8220;name&#8221;, &#8220;story_type&#8221; );<br />
        $story_type = $elem[0]-&gt;getAttribute(&#8220;value&#8221;);<br />
        @elem       = $html_p-&gt;getElementsByAttribute( &#8220;name&#8221;, &#8220;profile_id&#8221; );<br />
        $profile_id = $elem[0]-&gt;getAttribute(&#8220;value&#8221;);<br />
        @elem       = $html_p-&gt;getElementsByAttribute( &#8220;name&#8221;, &#8220;confirm&#8221; );<br />
        $confirm_id = $elem[0]-&gt;getAttribute(&#8220;value&#8221;);<br />
        print &#8220;Deleting mini story key: $ministory_key..n&#8221;;<br />
        $mech-&gt;post(<br />
            &#8220;http://m.facebook.com&#8221; . $action,<br />
            {<br />
                fb_dtsg       =&gt; $username,<br />
                ministory_key =&gt; $ministory_key,<br />
                story_type    =&gt; $story_type,<br />
                profile_id    =&gt; $profile_id,<br />
                confirm_id    =&gt; $confirm_id<br />
            }<br />
        );<br />
        sleep(5);<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/comment-page-1/#comment-4252</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 12 Nov 2010 13:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.oneduality.com/?p=474#comment-4252</guid>
		<description>Hello,

this is a great script. Perl is not my favorite language.

Is there a way to post another script which deletes special wall post from farmville.

Would be glad about any help

Michael</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>this is a great script. Perl is not my favorite language.</p>
<p>Is there a way to post another script which deletes special wall post from farmville.</p>
<p>Would be glad about any help</p>
<p>Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lslah</title>
		<link>http://blog.oneduality.com/2010/05/06/use-perl-to-automatically-delete-your-facebook-wall-posts/comment-page-1/#comment-3772</link>
		<dc:creator>lslah</dc:creator>
		<pubDate>Tue, 12 Oct 2010 09:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.oneduality.com/?p=474#comment-3772</guid>
		<description>Wow, that&#039;s great! I was just looking around for an example of using HTML::Parser. Great :-)</description>
		<content:encoded><![CDATA[<p>Wow, that&#8217;s great! I was just looking around for an example of using HTML::Parser. Great :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

