enter image description here我的网站上发布的视频位于我的服务器中,但在我按下FB分享按钮后https://www.sotube.com/player/designers-events-celebs/chanel-fragrances-gabrielle-starring-kristen-stewart 它们不像以前一样被分享为视频,但它们现在在Facebook上显示为图像,而不是像以前那样在Facebook墙上显示的视频播放器。
我们网站后端的代码(见下文)没有改变。所有这些问题都发生在2017年11月,就在我改变了其他3个因素之后。
因此,在上述更改之前,我们之前都在工作,所以我们会与您联系,看看会出现什么问题,并请检查我的代码,以防万一我今天应该添加的内容。 谢谢
$document->addCustomTag('<link rel="canonical" href="' . $instance->toString() . '"/>');
$document->addCustomTag('<link rel="image_src" href="' . $fb . '"/>');
$document->addCustomTag('<meta property="og:video:secure_url" content="' . PLAYERPATH . '?baserefJHDV=' . $details1 ['baseurl'] . '&id='. $this->videodetails->id .'&playlist_auto=false&showPlaylist=false&shareIcon=false&email=false&zoomIcon=false&playlist_autoplay=false&videoID=0&embedplayer=true" />');
$document->addCustomTag('<meta property="og:video" content="' . PLAYERPATH . '?baserefJHDV=' . $details1 ['baseurl'] . '&id='. $this->videodetails->id .'&playlist_auto=false&showPlaylist=false&shareIcon=false&email=false&zoomIcon=false&playlist_autoplay=false&videoID=0&embedplayer=true" />');
$document->addCustomTag('<meta property="og:video:url" content="' . PLAYERPATH . '?baserefJHDV=' . $details1 ['baseurl'] . '&id='. $this->videodetails->id .'&playlist_auto=false&showPlaylist=false&shareIcon=false&email=false&zoomIcon=false&playlist_autoplay=false&videoID=0&embedplayer=true"/>');
$document->addCustomTag('<meta property="og:video:type" content="application/x-shockwave-flash" />');
$document->addCustomTag('<meta property="og:video:width" content="1280"/>');
$document->addCustomTag('<meta property="og:video:height" content="720"/>');
$document->addCustomTag('<meta property="og:image" content="' . $video_preview . '"/>');
$document->addCustomTag('<meta property="og:description" content="' . $video_desc . '"/>');
$document->addCustomTag('<meta property="fb:app_id" content="111111111111111"/>');
$document->addCustomTag('<meta property="og:site_name" content="' . $siteName . '"/>');
$document->addCustomTag('<meta property="og:url" content="' . $instance->toString() . '"/>');
$document->addCustomTag('<meta property="og:title" content="' . $video_title . '"/>');
$document->addCustomTag('<meta property="og:type" content="website"/>');