blib/lib/Dancer/Plugin/Facebook.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 2 | 12 | 16.6 |
line | l | !l | condition |
---|---|---|---|
17 | 0 | 1 | $fb // 'undef' |
77 | 0 | 0 | $$settings{'landing'}{'success'} || '/' |
78 | 0 | 0 | $$settings{'landing'}{'failure'} || '/' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
30 | 0 | 1 | 0 | $fb ||= do { my(%settings) = %config; if (my $access_token = session()->{'auth'}{'facebook'}) { $settings{'access_token'} = $access_token; }; debug('Creating Facebook::Graph object with settings ', \%settings); 'Facebook::Graph'->new(%settings) } |
41 | 0 | 0 | 0 | $redirect ||= do { my $settings = plugin_setting(); debug('Settings are ', $settings); my(@permissions) = ref $$settings{'permissions'} eq 'ARRAY' ? @{$$settings{'permissions'};} : (); _get_fb()->authorize->extend_permissions(@permissions)->uri_as_string } |