javascript 带有自定义参数的 Facebook 自定义共享网址...在预览中有效但在 FB 上已损坏

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20372117/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 18:20:41  来源:igfitidea点击:

Facebook custom share url with custom parameters...works in preview but broken on FB

javascriptfacebookapifacebook-graph-apishare

提问by Silvia Tacher

I was trying to create a share button that you can see on this page. There are different products and a custom link to share any item on their own. The store has been personalized with the method ... sharer / sharer.php? Etc.

我试图创建一个您可以在此页面上看到的共享按钮。有不同的产品和自定义链接可以单独共享任何项目。商店已经用方法个性化了... sharer/sharer.php?等等。

Below is one of many links. The problem appears after you have shared the article on Facebook: the description does not appear, nor will the image and the title! Why? Thanks!

以下是众多链接之一。在Facebook上分享文章后出现问题:描述不出现,图像和标题也不出现!为什么?谢谢!

https://www.facebook.com/sharer/sharer.php?s=100&p[title]=[PROMO]%20Scopri%20questa%20fantastica%20promozione%20natalizia!&p[url]=http://contat.eu/facebook/vtour/fan.html&p[summary]=Spendi%20almeno%20100%20%20sulla%20nuova%20collezione%20autunno/inverno%202013%20di%20Denny%20Rose%20oppure%20soprabito%20della%20nuova%20collezione%202013%20tra%20quelli%20illustrati%20e%20riceverai%20un%20completino%20intimo%20in%20regalo%20oppure%20uno%20sconto%20del%2050%%20sui%20capi%20di%20grandi%20marchi%20delle%20collezioni%20precedenti.%20Ma%20le%20sorprese%20non%20finiscono%20qui…%20tante%20borse,%20scarpe%20ed%20intimo%20a%20prezzi%20sbalorditivi.Descrizione&p[images][0]=http://contat.eu/facebook/vtour/img/mod/sm/diva-abbigliamento12.png

I look for some answers or suggestions! I'm online 12/24h ^ ^

我寻找一些答案或建议!我 12/24 小时在线 ^ ^

回答by CBroe

The share dialog will not take additional parameters any more, only the URL. All other info it takes from the OG meta tags on the URL shared.

共享对话框将不再采用其他参数,仅采用 URL。它从共享 URL 上的 OG 元标记中获取的所有其他信息。

If you want to give that additional info yourself, you will have to use the Feed dialog, which still accepts them.

如果您想自己提供附加信息,则必须使用仍接受它们的Feed 对话框