Hey I see this is resolved but Contact Form 7 have a solution it’s the same as the solution for google analytics event tracking here
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
fbq(‘track’, ‘Lead’);
}, false );
</script>
You just need to put this in the <head> of your website and I assume anywhere below the facebook pixel code.