Facebook::Graph::Picture - Get the URI for the picture of any object.
version 1.1202
my $fb = Facebook::Graph->new; my $default_picture = $fb->picture('16665510298')->uri_as_string; my $large_picture = $fb->picture('16665510298')->get_large->uri_as_string; my $small_picture = $fb->picture('16665510298')->get_small->uri_as_string; my $square_picture = $fb->picture('16665510298')->get_square->uri_as_string;
This module allows you to generate the URL needed to fetch a picture for any object on Facebook.
A hash or hashref of parameters to pass to the constructor.
An profile id like sarahbownds or an object id like 16665510298 for the Perl page.
sarahbownds
16665510298
Type of picture to return. Valid types are small, square, large
Get a large picture. 200 pixels wide by a variable height.
The unique id or object name of an object.
Example: For user "Sarah Bownds" you could use either her profile id sarahbownds or her object id 767598108.
767598108
Get a small picture. 50 pixels wide by a variable height.
Get a square picture. 50 pixels wide by 50 pixels tall.
Returns a URI string based upon all the methods you've called so far on the query. You can throw the resulting URI right into an <img> tag.
Facebook::Graph is Copyright 2010 - 2012 Plain Black Corporation (http://www.plainblack.com) and is licensed under the same terms as Perl itself.
To install Facebook::Graph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Facebook::Graph
CPAN shell
perl -MCPAN -e shell install Facebook::Graph
For more information on module installation, please visit the detailed CPAN module installation guide.