Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何返回Facebook视频嵌入的SSL资源_Facebook_Ssl_Facebook Graph Api - Fatal编程技术网

如何返回Facebook视频嵌入的SSL资源

如何返回Facebook视频嵌入的SSL资源,facebook,ssl,facebook-graph-api,Facebook,Ssl,Facebook Graph Api,我试图使用Graph API中的embed_html,但调用没有使用return_SSL_results=1返回SSL,是否要返回SSL的嵌入代码?尝试{}在添加到对象之前重写源URL。这对我来说很有效 $fvalue[source]是包含视频的帖子的源url 您也可以使用$fvalue[embed_html]进行操作 if($fvalue[source]){ $reWrite=array(“自动播放=1”=>“自动播放=0”,“http://”=>“https://”); $getEmb

我试图使用Graph API中的embed_html,但调用没有使用return_SSL_results=1返回SSL,是否要返回SSL的嵌入代码?

尝试{}在添加到对象之前重写源URL。这对我来说很有效

  • $fvalue[source]是包含视频的帖子的源url
  • 您也可以使用$fvalue[embed_html]进行操作

if($fvalue[source]){
$reWrite=array(“自动播放=1”=>“自动播放=0”,“http://”=>“https://”);
$getEmbed=$fvalue[source];
$strAuto=strtr($getEmbed,$reWrite);
回声';
}

这是Facebook API中的一个已知错误-它正在btu上运行,有一段时间没有更新-非常感谢Igy。
if($fvalue[source]){
   $reWrite = array("autoplay=1" => "autoplay=0", "http://" => "https://");
   $getEmbed = $fvalue[source];
   $strAuto = strtr($getEmbed, $reWrite);
   echo '<object style="float:left; clear:left; margin: 5px;"><param name="autostart" value="0"><embed autostart="false" src="'.$strAuto.'"></embed></object>';
}