如何在 Facebook 共享者 URL 中传递标题、摘要和图像等参数 [英] How to pass a parameter like title, summary and image in a Facebook sharer URL

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

问题描述

问题:

我需要在 Facebook 共享者 URL 中传递我的内容,如标题、摘要和图像,如下所示:

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/概览/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.

我们已更改共享器插件的行为,以与我们平台上的其他插件和功能保持一致.

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/错误/357750474364812/

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

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