function facebook_pull_notes in Facebook Pull 6
Same name and namespace in other branches
- 7.3 facebook_pull.module \facebook_pull_notes()
- 7 facebook_pull.module \facebook_pull_notes()
- 7.2 facebook_pull.module \facebook_pull_notes()
Serve up facebook notes
File
- ./
facebook_pull.module, line 181
Code
function facebook_pull_notes($id, $key, $viewer = 0, $limit = 5) {
$data = _facebook_pull_notes_cached($id, $key, $viewer);
if (!$data) {
return '';
}
$feed = simplexml_load_string($data);
$entries = array();
for ($i = 0; $i < $limit; $i++) {
$entries[] = $feed->entry[$i];
}
return theme('facebook_pull_notes', $id, $entries);
}