Location: PHPKode > scripts > Facebook Inbox Handler > facebook-inbox-handler/index.php
<?php
 include 'class.fbinbox.php';

$fbi = new FBInbox('your_api_key', 'your_api_secret',true);

$folderInfo = $fbi->getFolderInfo();
$allThreads = $fbi->getAllThreads();
$search_results = $fbi->searchInbox('word_to_be_searched');
$unread_threads = $fbi->getUnreadThreads();
$message = $fbi->readMessage('your_theread_id');
?>
<pre>
    <?php
    print_r($folderInfo);
    print_r($allThreads);
    print_r($search_results);
    print_r($unread_threads);
    print_r($message);
    ?>
</pre>
Return current item: Facebook Inbox Handler