如何传递参数像标题,摘要和图像在Facebook Sharer url [英] how to pass parameter like title,summary and image in facebook sharer url
问题描述
问题:
我需要在facebook sharer url中传递我的内容,例如标题,摘要和图片。
I need to pass my content like title, summmary and image in facebook sharer url like this.
<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
共享我的自定义标题,摘要和图像。
The problem is its automatically getting some content from the above mentioned url(http://myurl.com/overview/sap-talent) and I don't know where my title and summary data's are gone.Is there any other way to share my custom title, summary and image via facebooksharer.php
.
推荐答案
我们已将sharer插件的行为更改为与其他插件一致以及我们平台上的功能。
We have changed the behavior of the sharer plugin to be consistent with other plugins and features on our platform.
sharer将不再接受自定义参数,而且Facebook将以与显示在预览中相同的方式提取正在显示的信息
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.
以下是文章的网址:https://developers.facebook.com/x/bugs/357750474364812/
这篇关于如何传递参数像标题,摘要和图像在Facebook Sharer url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!