Reputation: 95
I get code this from facebook developers
$this->api('/ USER_ID /likes');
But how I get the list based on its category using php-sdk. I have checked the Graph API Explorer but the modifiers only limit, offset, target_id
Upvotes: 0
Views: 216
Reputation: 782
I don't think it's possible with the graph api. But you could easily create you own array
$ordered_by_cat = array();
foreach($results['data'] as $result){
$ordered_by_cat[$result['category'] = $result
}
Given that $results is your json response
Upvotes: 1