Hey guys On my profile page, I'm trying to pull all my likes from facebook and display the detail about each like. For example, if I like the tv show Seinfeld, I will display the Seinfeld logo along with how many like it etc.
I'm using the php sdk and it takes forever to pull the data.
Currently I have only 24 likes and it takes 75 seconds to pull this data.
This is the code I am using
<pre>
$likes = $facebook->api('/me/likes');
foreach($likes['data'] as $like) {
$like_item = $facebook->api($like['id']);
?>
<fb:profile-pic uid="<?php echo $like_item['id'];?>" size="square"></fb:profile-pic>
<?php
echo $like_item['name'];
?>
<fb:like href="<?php echo $like_item['link'];?>"></fb:like>
<?
}
</pre>
Any idea why its taking so long. Am I doin it the right way or is there a better way to approach this. Thanks a bunch