posts A"; $ids = $wpdb->get_col($thisquery); $permalinks = array(); foreach ($ids as $id) { $permalinks[get_permalink($id)] = $id; } } return $permalinks[$url]; } function import_facebook_page($notesurl, $verbose = false, $allpages = false, $start = 0) { $challenge = md5($time); // This is just a random 32-digit hex number. $test_run = $_POST['test_run']; $notespage = facebook_get_url($notesurl . ($start == 0 ? '' : "&start=$start"), $challenge, $start); $dontimport = get_option('facebook_dont_import'); //