如何通过Facebook sharer URL中的标题,摘要和图像传递参数 [英] How to pass a parameter like title, summary and image in a Facebook sharer URL

查看:533
本文介绍了如何通过Facebook sharer URL中的标题,摘要和图像传递参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

我需要像Facebook这样的Facebook分享者网址,将标题,摘要和图片的内容传递给我:

I need to pass my content like title, summary and image in a 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 it's 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 are gone. Is there another way to share my custom title, summary and image via facebooksharer.php?

推荐答案

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

Looks like Facebook disabled passing parameters to the sharer.


我们已经将sharer插件的行为改变为一致与我们平台上的其他插件和功能。

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

分享者将不再接受自定义参数,Facebook将拉出预览中显示的信息与其相同将出现在Facebook上,作为URL OG元标记中的一个帖子。

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/

Here's the URL to the post: https://developers.facebook.com/x/bugs/357750474364812/

这篇关于如何通过Facebook sharer URL中的标题,摘要和图像传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆