Changeset 7869e48 for perl/modules/Facebook/lib/Facebook/Graph.pm
- Timestamp:
- Jan 12, 2013, 1:43:13 PM (11 years ago)
- Children:
- e3a0d71, 4485285
- Parents:
- 4626016
- git-author:
- Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Facebook/lib/Facebook/Graph.pm
r5ef98c7 r7869e48 87 87 } 88 88 89 sub authorize { 89 sub authorize { 90 90 my ($self) = @_; 91 91 return Facebook::Graph::Authorize->new( … … 302 302 my $sarah_bownds = $fb->fetch('sarahbownds'); 303 303 my $perl_page = $fb->fetch('16665510298'); 304 304 305 305 Or better yet: 306 306 … … 311 311 ->request 312 312 ->as_hashref; 313 313 314 314 my $sarahs_picture_uri = $fb->picture('sarahbownds')->get_large->uri_as_string; 315 315 … … 319 319 ->request('https://graph.facebook.com/btaylor') 320 320 ->as_hashref; 321 322 321 322 323 323 =head2 Building A Privileged App 324 324 … … 342 342 my $q = Plack::Request->new($env); 343 343 $fb->request_access_token($q->query_param('code')); 344 344 345 345 Or if you already had the access token: 346 346 347 347 $fb->access_token($token); 348 348 349 349 Get some info: 350 350 … … 419 419 420 420 my $sarah = $fb->fetch('sarahbownds'); 421 421 422 422 my $sarah = $fb->query->find('sarahbownds')->request->as_hashref; 423 423
Note: See TracChangeset
for help on using the changeset viewer.