'', 'show_option_none' => '', 'orderby' => 'ID', 'order' => 'ASC', 'show_count' => 0, 'hide_empty' => 0, 'child_of' => 0, 'exclude' => '', 'echo' => 1, 'selected' => 0, 'hierarchical' => 0, 'name' => 'cat', 'id' => '', 'class' => 'postform', 'depth' => 0, 'tab_index' => 0, 'taxonomy' => 'category', 'hide_if_empty' => false, ); $plugin_url = plugins_url( '/', __FILE__ ); echo '
'; } function fbimporter_import_callback() { global $wpdb; //required global declaration of WP variable require_once "src/facebook.php"; update_option( 'fbimporter_usertoken', $_POST['access_token'] ); $app_id = get_option( 'fbimporter_appid' );//"169010033263535"; $app_secret = get_option( 'fbimporter_appsecret' );//"0da8e6aa7f9c113b8e23080d53685b5d"; $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, )); $facebook->setAccessToken($_POST['access_token']); $arrImportPlaces= json_decode(stripslashes($_POST['places'])); $table_name=$wpdb->prefix."fbimporter"; $arrCategory = str_split($_POST['category']); echo 'Following Posts were added
'; for($i=0;$iapi($query); //print"
";print_r($fqlResult['description']);print"
"; $body=$fqlResult['description']; } catch (Exception $e) { //echo $e->getMessage(); echo 'Please update the Access Token: Update Token'; die(); } $query ="SELECT * FROM ".$table_name." WHERE id='".$arrImportPlaces[$i]."'"; //echo $query; $myLocation = $wpdb->get_row($query,'ARRAY_A'); $body.=""; $my_post = array( 'post_title' => $myLocation['title'], 'post_content' => $body, 'post_status' => 'publish', 'post_author' => 1, 'post_category' => $arrCategory); $post_id =wp_insert_post( $my_post ); $current_fields= $myLocation['fields']; while(strstr($current_fields,'|')) { $detail =strstr($current_fields,'|',true); $detail_field =strstr($detail,':',true); $detail_value =substr(strstr($detail,':'),1); //str_replace(':','',strstr($detail,':')); $current_fields =substr(strstr($current_fields,'|'),1); add_post_meta($post_id, $detail_field, $detail_value); } $detail =$current_fields; $detail_field =strstr($detail,':',true); $detail_value =substr(strstr($detail,':'),1); //str_replace(':','',strstr($detail,':')); $current_fields =substr(strstr($current_fields,'|'),1); add_post_meta($post_id, $detail_field, $detail_value); echo ''.$myLocation['title'].'
'; } die(); } function fbimporter_search_callback() { global $wpdb; //required global declaration of WP variable require_once "src/facebook.php"; update_option( 'fbimporter_usertoken', $_POST['access_token'] ); $app_id = get_option( 'fbimporter_appid' );//"169010033263535"; $app_secret = get_option( 'fbimporter_appsecret' );//"0da8e6aa7f9c113b8e23080d53685b5d"; $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, )); $table_name=$wpdb->prefix."fbimporter"; $wpdb->query('delete from '.$table_name); $lat=round($_POST['lat'],2); $long=round( $_POST['long'],2); $dist=10*1000; $q=$_POST['in']; $type=$_POST['type']; $query="/search?center=".$lat.",".$long."&distance=".$dist."&type=". $type ."&q=".$q; //echo $query; try{ $facebook->setAccessToken($_POST['access_token']); $fqlResult = $facebook->api($query); if(!$fqlResult['data']) { echo "No Result Found"; die(); } } catch (Exception $e) { //echo $e->getMessage(); echo 'Please update the Access Token: Update Token'; die(); } $result.=""; echo $result; die(); } ?> HOMINTER BLOG
 

Aqua Glass Silver Metal Tiles Backsplash Diamond Stainless Steel Tile

Shop aqua glass silver metal tiles backsplash diamond stainless steel mosaic tile bathroom designs AGSM20; Material: Glass and Stainless Steel; Color: Cyan and Silver; Size: 300x300x8mm; Chip Size: 15x15mm, 15x48mm, 15x98mm; Free Shipping! Source: Aqua Glass Silver Metal Tiles Backsplash Diamond Stainless Steel Tile

green crackle glass mosaic tile wall backspashes hand paint glass tile shell tile deco

green crackle glass mosaic tile wall backspashes hand paint glass tile shell tile deco KLGT114, Size: 300x300mm Source: green crackle glass mosaic tile wall backspashes hand paint glass tile shell tile deco KLGT114

Crystal Glass Tile Blue and White Puzzle Mosaic Tile Crackle Crystal Backsplash Kitchen Mosaic Wall Tiles

Crystal Glass Tile blue and white Puzzle Mosaic Tile Crystal Backsplash Kitchen Mosaic Wall Tiles, 300x300mm Source: Crystal Glass Tile Blue and White Puzzle Mosaic Tile Crackle Crystal Backsplash Kitchen Mosaic Wall Tiles SM112

Cream Stone and Glass Mosaic Tile Wave Glass Marble Tile Backsplash Plated Wall Mosaics Floor Tiles

Cream Stone and Glass Mosaic Tile Wave Glass Marble Tile Backsplash Plated Wall Mosaics Floor Tiles GS001 Source: Cream Stone and Glass Mosaic Tile Wave Glass Marble Tile Backsplash Plated Wall Mosaics Floor Tiles GS001

Adhesive Mosaic Tile Silver Brushed Aluminum Metal Glass Diamond Grid Patterns Peel and Stick Tiles Tile

Adhesive Mosaic Tile Silver Brushed Aluminum Metal Glass Diamond Grid Patterns Peel and Stick Tiles Tile1530-125 Source: Adhesive Mosaic Tile Silver Brushed Aluminum Metal Glass Diamond Grid Patterns Peel and Stick Tiles Tile1530-125