public function article_author_facebook()
{
if (!is_singular()) {
return false;
}
/**
* Filter: 'wpseo_opengraph_author_facebook' - Allow developers to filter the Yoast SEO post authors facebook profile URL
*
* @api bool|string $unsigned The Facebook author URL, return false to disable
*/
$facebook = apply_filters('wpseo_opengraph_author_facebook', get_the_author_meta('facebook', $GLOBALS['post']->post_author));
if ($facebook && (is_string($facebook) && $facebook !== '')) {
$this->og_tag('article:author', $facebook);
return true;
}
return false;
}