display php code in header using wp_head()

As per my understanding you wish to print content from get_option below . For that please write below code to funcitons.php file:

function my_facebook_tags() {
    return  $options = get_option("p2h_theme_options");
}

And below code within your header file below to wp_head() write:

<?php echo my_facebook_tags();?>

Hope this will resolve the issue for you!

EDITED:

Try the below code . It should output the desired result automatically in your header.

function my_facebook_tags() {
    echo get_option("p2h_theme_options");
}
add_action('wp_head', 'my_facebook_tags');