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

前端之家收集整理的这篇文章主要介绍了php – 如何传递参数,如标题,摘要和图像在facebook sharer url前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
题:

我需要通过我的内容,如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/

原文链接:https://www.f2er.com/php/131014.html

猜你在找的PHP相关文章