加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 如何传递参数,如标题,摘要和图像在facebook sharer url

发布时间:2020-12-13 14:05:38 所属栏目:PHP教程 来源:网络整理
导读:题: 我需要通过我的内容,如title,summmary和image在Facebook sharer url这样. a id="button" href="http://www.facebook.com/sharer.php? s=100 p[url]=http://myurl.com/overview/sap-talent p[images][0]=http://myurl/images/my_image.png p[title]=myti
题:

我需要通过我的内容,如title,summmary和image在Facebook sharer url这样.

<a id="button"
    href="http://www.facebook.com/sharer.php?
    s=100
    &p[url]=http://myurl.com/overview/sap-talent
    &p[images][0]=http://myurl/images/my_image.png
    &p[title]=mytitle
    &p[summary]=containsummary">

问题是它自动从上面提到的URL(http://myurl.com/overview/sap-talent)中获取一些内容,我不知道我的标题和摘要数据在哪里.我有任何其他方式通过Facebooksharer.php分享我的自定义标题,摘要和图像.

看起来Facebook禁止向参与者传递参数.

We have changed the behavior of the sharer plugin to be consistent with other plugins and features on our platform.

The sharer will no longer accept custom parameters and facebook will pull the information that is being displayed in the preview the same way that it would appear on facebook as a post from the url OG meta tags.

这是发布的URL:https://developers.facebook.com/x/bugs/357750474364812/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读