Guest User

Untitled

a guest
Feb 19th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. use WWW::Facebook::API;
  2. use Data::Dumper;
  3.  
  4. my $client = WWW::Facebook::API->new(
  5. desktop => 1,
  6. api_key => 'api.key',
  7. secret => 'api.secret',
  8. );
  9.  
  10. $client->auth->get_session;
  11.  
  12. my $friends_perl = $client->friends->get;
  13. print Dumper $friends_perl;
  14.  
  15. my $notifications_perl = $client->notifications->get;
  16. print Dumper $notifications_perl;
  17.  
  18. my $quotes_perl = $client->users->get_info(
  19. uids => $friends_perl,
  20. fields => ['quotes']
  21. );
  22. print Dumper $quotes_perl;
  23.  
  24. $client->auth->logout;
Add Comment
Please, Sign In to add comment