Subject: | msend_friend_request broke aswell? |
Date: | Mon, 11 Aug 2008 12:04:55 +0800 |
To: | bug-WWW-Myspace [...] rt.cpan.org |
From: | John Hale <john [...] deedevelopments.com> |
I am doing the following code:
my @friends;
@friends = $myspace->friends_from_profile('157631228');
warn $myspace->error if ( $myspace->error );
# Send a bunch of friend requests
my @posted = ();
my @failed = ();
foreach my $friend ( @friends ) {
print "Posting to $friend: ";
my $status = $myspace->send_friend_request( $friend );
if ( $status =~ /^P/ ) {
print "Succeeded\n";
push ( @posted, $friend );
} else {
print "Failed with code $status\n";
push ( @failed, $friend );
}
# Stop if we got a CAPTCHA request.
last if $status eq 'FC';
}
# Do what you want with @posted and @failed.
print "Accpted Friends\n";
print @posted;
Posting to 107240945: Failed with code FN
No Add to Friends button on form!
Posting to 112723355: Failed with code F
No Add to Friends button on form!
Posting to 113369715: Failed with code F
No Add to Friends button on form!
Posting to 11598097: Failed with code F
Posting to 117992667: Failed with code FA
No Add to Friends button on form!
Posting to 118653445: Failed with code F
No Add to Friends button on form!
Posting to 122950073: Failed with code F
No Add to Friends button on form!
Posting to 125398943: Failed with code F
No Add to Friends button on form!
Posting to 125673768: Failed with code F
No Add to Friends button on form!
Posting to 132314966: Failed with code F
No Add to Friends button on form!
Posting to 132630082: Failed with code F