eagleoneraptor

Untitled

Apr 29th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Goa = imports.gi.Goa;
  2. const Gio = imports.gi.Gio;
  3. const GFBGraph = imports.gi.GFBGraph;
  4.  
  5. let client = Goa.Client.new_sync(null);
  6. let accounts = client.get_accounts();
  7. let authorizer = null;
  8.  
  9. for (let i in accounts) {
  10.     let account = accounts[i].get_account();
  11.     if (account.provider_type === "facebook") {
  12.         //authorizer = new GFBGraph.GoaAuthorizer(/* what? */);
  13.         break;
  14.     }
  15. }
  16.  
  17. ...
Advertisement
Add Comment
Please, Sign In to add comment