You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何隐藏Facebook嵌入视频右上角的分享按钮?

隐藏Facebook嵌入视频的分享按钮(保留其他控件)

直接给你的iframe链接添加show_share=false参数即可实现需求,这个参数是Facebook视频嵌入插件官方支持的,专门用来控制分享按钮的显示/隐藏。

修改后的完整代码:

<iframe src="https://www.facebook.com/plugins/video.php?height=476&href=https%3A%2F%2Fwww.facebook.com%2Fmyfacebook%2Fvideos%2FXX%2F&show_text=false&width=267&t=0&show_share=false" width="267" height="476" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="clipboard-write; encrypted-media; picture-in-picture; web-share" allowFullScreen="true"></iframe>

说明:这个参数只会隐藏右上角的分享按钮,播放、音量、全屏等其他控件都会正常保留。

内容的提问来源于stack exchange,提问作者Pat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 16:04:54