html - 分享链接在 iphone 上不起作用,但在桌面上有效

标签 html iphone css facebook share

我的网站上有一个共享链接,它在大多数浏览器和移动设备上都运行良好。但出于某种原因,它不适用于 iPhone。它会在 Facebook 中显示一个共享表单,但是该表单是空的并且

<a target="_blank" href='https://www.facebook.com/sharer/sharer.php?s=100&amp;p[url]=http://www.lcbcchurch.com/watch/series/cat/{category_url_title}&amp;p[images][0]={square-thumb}&amp;p[title]={exp:stringy:htmlentities}{category_name}{/exp:stringy:htmlentities}&amp;p[summary]={category_description}'><img src="{homepage}nimg/facebook-icon.png" /></a>

关于为什么这不起作用的任何想法?

最佳答案

我感觉它可能不起作用,因为 sharer.php 链接会在移动设备上重定向到 m.facebook.com。如果是这样,您只需将“m2w”参数添加到您的 URL,以便 m.没有被拾起。

 https://www.facebook.com/sharer/sharer.php?m2w&s=100.... (etc)

StackOverflow 问题: Source

关于html - 分享链接在 iphone 上不起作用,但在桌面上有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18721755/

相关文章:

c# - iPhone 聊天应用程序的 TCP/IP 与 Web 服务

iphone - UITableViewCell 内的事件在 y 值以下不工作

javascript - 如果值 = 0,则显示占位符

javascript - 从滚动切换到固定时如何让背景图像保持不变?

html - css3 在另一个 div 下投影,z-index 不工作

html - 在css中使用哪个单位更好?

javascript - 如何在 HTML 中搜索表格中的数据

html - Zurb 基金会嵌套 Div 问题

ios - 是否可以在 Apple iOS 设备上激活 TCP keepalive

html - 浏览器调整大小时内容移动