如何自定义Facebook发送按钮?

Gol*_*les 8 facebook

我正在尝试自定义Facebook"发送"按钮的外观.

我使用文档中提供的代码生成按钮,但是我不知道如何修改按钮的图像或文本?

谁能举个例子?我想javascript是我唯一的选择吗?

我的代码现在看起来像这样:

<fb:send href="http://www.mywebsite.com/something"></fb:send> 
Run Code Online (Sandbox Code Playgroud)

这会生成一个如下所示的按钮:

在此输入图像描述

谢谢!

Gaj*_*jus 16

您无法自定义<fb:send />按钮.但是,您可以使用FB.ui(http://developers.facebook.com/docs/reference/javascript/FB.ui/)实现相同的功能.使用send方法,例如.

FB.ui({
    method: 'send',
    name: 'People Argue Just to Win',
    link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
});
Run Code Online (Sandbox Code Playgroud)