Mayfield Four
Mayfield Four

Reputation: 95

get facebook list of liked page by category

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

Answers (1)

Jareish
Jareish

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

Related Questions