On 04/16/2011 11:26 AM, Sherm Pendley wrote:
> Uno<> writes:
>
>> Why is my terminal always telling me that 'YAML' is not installed,
>> while python-yaml is?
>
> Because YAML is a Perl module, and python-yaml is not.
>
> sherm--
>
$ man YAML
$ ysh
No command 'ysh' found, but there are 25 similar ones
ysh: command not found
$ perl fb1.pl
Global symbol "$app_id" requires explicit package name at fb1.pl line 8.
Global symbol "$api_key" requires explicit package name at fb1.pl line 9.
Global symbol "$secret" requires explicit package name at fb1.pl line 10.
BEGIN not safe after errors--compilation aborted at fb1.pl line 13.
$ man Moose
$ cat fb1.pl
#!/usr/bin/perl
use strict;
use warnings;
use Facebook;
my $fb = Facebook->new(
app_id => $app_id,
api_key => $api_key,
secret => $secret,
);
use Facebook::Signed;
my $logged_in_fb = Facebook->new(
signed => Facebook::Signed->new(
secret => $secret,
facebook_data => $facebook_cookie_for_your_application_as_text,
),
app_id => $app_id,
secret => $secret,
api_key => $api_key,
);
# If you dont provide secret, it will try to fetch it from signed values
my $shorter_logged_in_fb = Facebook->new(
signed => Facebook::Signed->new(
secret => $secret,
facebook_data => $facebook_cookie_for_your_application_as_text,
),
app_id => $app_id,
api_key => $api_key,
);
# You need to have Facebook::Graph installed so that this works
my $gettys_facebook_profile = $fb->graph->query
->find(100001153174797)
->include_metadata
->request
->as_hashref;
__END__
$
I had hoped that getting YAML, Moose, Facebook::Signed and so forth was
going to help me resolve these 3 errors, but not so. Ideas?
--
Uno
|