function _soc_boxauth_diagnostics()
{
    if (!BoxFolderOperations::isSessionActive()) {
        return 'Box not active';
    }
    $content = '<pre>';
    $content .= print_r($_SESSION['box'], true);
    $folder = new BoxFolder(0, $_SESSION['box']['access_token']);
    $content .= print_r($folder->getItems(), true);
    $content .= '</pre>';
    return $content;
}
function soc_boxgroup_test($gid)
{
    if (!BoxFolderOperations::isSessionActive()) {
        return 'Box session not active';
    }
    $box_id = BoxFolderOperations::getBoxFolderID($gid);
    if (!$box_id) {
        $folder = new BoxFolder($box_id, BoxFolderOperations::getCurrentAccessToken());
    }
    $to_return[] = 'TESTING:';
    $to_return[] = $box_id;
    //$to_return[] = '<pre>' . print_r(json_decode($folder->getCollaborations()), TRUE) . '</pre>';
    $to_return[] = '<h2>Collaborators Object</h2><pre>' . print_r($folder->getCollabortiorNames(), TRUE) . '</pre>';
    return '<p>' . implode('</p><p>', $to_return) . '</p>';
}