开发者

How can you create a custom Facebook "Like" button?

Does anyone 开发者_如何学JAVAknow if there's a way to use a custom LIKE button and make calls to the facebook like api on the server side? Ideally I'd like to have my own LIKE button that calls my app and also calls out to FB like.

For instance Pandora seems to do this with their "thumbs" up button. I know they were a launch partner so they may have special treatment.

thx!


This is still impossible to do.

Pandora definitely has special treatment (instant personalization). Quora is also on whatever whitelist allows you to make a custom like button.

Though, I can appreciate that this could be easily abused.


The like button isn't generically customizable. Some companies partner with Facebook and get the ability to customize it.


Yes you can! All you have to do is use whatever image you want e.g.:

<img src="custom-facebook-image.png" />

And then link it to the Facebook Share URL as follows:

http://www.facebook.com/sharer.php?u=http://www.example.com&t=CustomTitle

Just make sure you escape all the characters in the URL and you can add it as a href:

<a href="http://www.facebook.com/sharer.php?u=http://www.example.com&t=CustomTitle">
    <img src="custom-facebook-image.png" />
</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜