我正在尝试使用带有perl模块Facebook::Graph
的facebook api第一步,获取代码:
my $fb = Facebook::Graph->new(
app_id => 'xxxx',
secret => 'xxxx',
postback => 'http://xxxxx/fb_postback',
);
my $uri = $fb
->authorize
->uri_as_string;
现在我有代码参数,我尝试获取身份验证令牌:
$fb->request_access_token($RETURNED_PARAM_CODE);
服务器记录此错误:
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.
有什么想法吗?
答案 0 :(得分:2)
安装Net::SSLeay
和AnyEvent::TLS
,或者更好地将Facebook::Graph
升级为> = 1.0502。