2

Im' trying to use facebook api with perl module Facebook::Graph

First step, get che code:

my $fb = Facebook::Graph->new(
        app_id          => 'xxxx',
        secret          => 'xxxx',
        postback        => 'http://xxxxx/fb_postback',
    );

      my $uri = $fb
        ->authorize
        ->uri_as_string;

Now I have the code param and I try to get the auth token:

$fb->request_access_token($RETURNED_PARAM_CODE);

The server log this error:

 Could not fetch access token: TLS support not available on this system at perl5/site_perl/5.10.0/Facebook/Graph/AccessToken/Response.pm line 26.

Any ideas?

grigno
  • 3,128
  • 4
  • 35
  • 47

1 Answers1

3

Install Net::SSLeay and AnyEvent::TLS, or better upgrade Facebook::Graph to >= 1.0502.

daxim
  • 39,270
  • 4
  • 65
  • 132
  • thanks for the answer. AnyEvent::TLS is installed, Net::SSLeay: 'Make had returned bad status, install seems impossible'. My current version of FB::Graph is the latest = 1.0600 – grigno Aug 01 '13 at 14:05
  • 1
    [Open a new question](http://stackoverflow.com/questions/ask) and describe the SSLeay installation problem. Provide the whole log of the installation, not just the last line. – daxim Aug 01 '13 at 15:36
  • Worked, installing Net::SSLeay, AnyEvent::TLS and libssl-dev, thank you. – grigno Aug 02 '13 at 08:38