Skip to content
Browse files

do not attempt to sanitize when fetching likes/friends/photos. we're …

…doing it later on when displaying
  • Loading branch information...
1 parent 8254af5 commit ec75edf6666687f78df20cf1fb0d5cc6059f1d42 @pedro pedro committed Jan 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.php
View
6 index.php
@@ -47,17 +47,17 @@
// To see the format of the data you are retrieving, use the "Graph API
// Explorer" which is at https://developers.facebook.com/tools/explorer/
$likes = array_values(
- idx(FBUtils::fetchFromFBGraph("me/likes?access_token=$token&limit=4"), 'data')
+ idx(FBUtils::fetchFromFBGraph("me/likes?access_token=$token&limit=4"), 'data', null, false)
);
// This fetches 4 of your friends.
$friends = array_values(
- idx(FBUtils::fetchFromFBGraph("me/friends?access_token=$token&limit=4"), 'data')
+ idx(FBUtils::fetchFromFBGraph("me/friends?access_token=$token&limit=4"), 'data', null, false)
);
// And this returns 16 of your photos.
$photos = array_values(
- idx($raw = FBUtils::fetchFromFBGraph("me/photos?access_token=$token&limit=16"), 'data')
+ idx($raw = FBUtils::fetchFromFBGraph("me/photos?access_token=$token&limit=16"), 'data', null, false)
);
// Here is an example of a FQL call that fetches all of your friends that are

0 comments on commit ec75edf

Please sign in to comment.
Something went wrong with that request. Please try again.