创建具有自定义网址,标题和图像的Facebook共享按钮

问题描述:

Facebook用于在Facebook分享按钮中允许自定义参数,但它现在不起作用。我需要的是创建一个拥有自定义标题,URL,图像,描述等的Facebook分享按钮。由于单个页面上有多个共享按钮,因此无法使用元标记。每个应该有不同的标题,网址,图像等。我听说可以使用Facebook应用程序 - 使用应用程序ID或某些东西。

Facebook used to allow custom parameters in the Facebook share button, but it is not working now. What I need is to create a Facebook share button which will have a custom title, url, image, description, etc. It cannot be done using meta tags because there are multiple share buttons on a single page. Each should have a different title, urls, images etc. I heard it can be done using the Facebook app - using app id or something.

我尝试过,但不是工作:

I tried this but it's not working:

<a title="send to Facebook" 
  href="http://www.facebook.com/sharer.php?s=100&p[title]=YOUR_TITLE&p[summary]=YOUR_SUMMARY&p[url]=YOUR_URL&p[images][0]=YOUR_IMAGE_TO_SHARE_OBJECT"
  target="_blank">


不幸的是,似乎我们不能发布股票针对个别主题或页面内的文章。看来,Facebook只是希望我们共享整个页面(仅基于网址)。

Unfortunately, it appears that we can't post shares for individual topics or articles within a page. It appears Facebook just wants us to share entire pages (based on url only).

还有他们的新的共享对话框,但即使他们声称可以做所有旧的sharer.php可以做的,但似乎不是

There's also their new share dialog, but even though they claim it can do all of what the old sharer.php could do, that doesn't appear to be true.

这里是 Facebook的最佳做法进行分享。