CGI::Untaint::Facebook - Validate a string is a valid Facebook URL or ID
Version 0.13
CGI::Untaint::Facebook validate if a given ID in a form is a valid Facebook ID. The ID can be either a full Facebook URL, or a page on facebook, so 'http://www.facebook.com/nigelhorne' and 'nigelhorne' will both return true.
use CGI::Info; use CGI::Untaint; use CGI::Untaint::Facebook; # ... my $info = CGI::Info->new(); my $params = $info->params(); # ... my $u = CGI::Untaint->new($params); my $tid = $u->extract(-as_Facebook => 'web_address'); # $tid will be lower case
Validates the data. Returns a boolean if $self->value is a valid Facebook URL.
Nigel Horne, <njh at bandsman.co.uk>
<njh at bandsman.co.uk>
Please report any bugs or feature requests to bug-cgi-untaint-url-facebook at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Untaint-Twitter. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-untaint-url-facebook at rt.cpan.org
CGI::Untaint::url
You can find documentation for this module with the perldoc command.
perldoc CGI::Untaint::Facebook
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Untaint-Facebook
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/CGI-Untaint-Facebook
CPAN Ratings
http://cpanratings.perl.org/d/CGI-Untaint-Facebook
Search CPAN
http://search.cpan.org/dist/CGI-Untaint-Facebook
Copyright 2012-2015 Nigel Horne.
This program is released under the following licence: GPL
To install CGI::Untaint::Facebook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Untaint::Facebook
CPAN shell
perl -MCPAN -e shell install CGI::Untaint::Facebook
For more information on module installation, please visit the detailed CPAN module installation guide.