function facebook_pull_notes in Facebook Pull 7.2
Same name and namespace in other branches
- 6 facebook_pull.module \facebook_pull_notes()
- 7.3 facebook_pull.module \facebook_pull_notes()
- 7 facebook_pull.module \facebook_pull_notes()
Serve up facebook notes.
File
- ./
facebook_pull.module, line 196 - Default cache time.
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', array(
'feedid' => $id,
'items' => $entries,
));
}