exit; } /* begin building ajax response */ $sessionNotReqMethods = array('appTab', 'wall', 'fetchVideoPreview', 'fetchChallenges', 'fetchFeed', 'fetchLeaders', 'fetchFeedPage', 'wallPublisher', 'fetchPublisherPage', 'emailAttach', 'showSponsor', 'parseStory', 'fetchDynamicDialog', 'askRelated', 'askRefreshAnswers', 'ideaRelated', 'stuffRelated', 'searchAws', 'stuffCopyItem', 'stuffCopyAwsItem', 'slideMediaPanel', 'microFetchBrowse'); $sessionOptionalMethods = array('common', 'shareStory', 'shareStorySubmit', 'switchPage', 'switchTeamTab', 'fetchNewswire', 'fetchNewswireWrap', 'fetchNewswirePage', 'askFetchBrowseQuestions', 'ideaFetchBrowse', 'stuffRecordLike', 'ideaRecordLike', 'askRecordLike', 'stuffRefreshComments', 'stuffRefreshSearch', 'ideasRefreshComments', 'askRefreshAnswerComments', 'ideaShareSubmit', 'askShareSubmit'); // NOTE: AJAX methods that do not require a session must be added to the above array if (array_search($method, $sessionNotReqMethods) !== false) { // session not required switch ($method) { case 'slideMediaPanel': if (isset($_GET['pg'])) { $pg = $_GET['pg']; $app = setupAppFramework(); require_once PATH_FACEBOOK . "/classes/media.class.php"; $mObj = new media($db); $code = $mObj->buildMediaSlider($pg, true); } break; case 'microFetchBrowse': // microBlogs if (isset($_GET['tag'])) { $tag = $_GET['tag']; $page = $_GET['page']; $app = setupAppFramework(); require_once PATH_FACEBOOK . "/classes/micro.class.php"; $mObj = new micro($db); $code = $mObj->listMessages('recent', $tag, 0, 0, 99); } break; case 'stuffCopyAwsItem': if (isset($_POST['asin'])) {