The problem is when the first click happens the facebox
plugin is not initialized, a workaround is to initialize the plugin and then re-trigger the click event again
$(document).one("click", "a[rel*=modal]", function() {
$(this).facebox().triggerHandler('click');
});