var valor = document.getElementById("graph");
var fb_id = document.getElementById("fb_id");
function pesquisa(){
....
if(valor('postagem').selected==True){
window.open('https://www.facebook.com/search/' + fb_id + '/stories-commented', 'fb2window');
}
}