开发者

A Link for Facebook Likes (no button)

开发者 https://www.devze.com 2023-01-06 13:41 出处:网络
I have a quiet and minimal 开发者_开发知识库site that I\'d like to add a \"share on Facebook\" link to. My preference would be for a simple text link. Is this possible anymore?You have very good docum

I have a quiet and minimal 开发者_开发知识库site that I'd like to add a "share on Facebook" link to. My preference would be for a simple text link. Is this possible anymore?


You have very good documentation on this topic.

http://www.facebook.com/share/:

Regardless of the implementation, Share always uses the url format below to show the user the preview. Feel free to create your own implementation based on this.

http://www.facebook.com/sharer.php?u=&t= We also provide an API to query data on shared items.


Something like this:

<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.yahoo.com%2F" target="_top">Share on Facebook</a>

You may also consider using window.open() to provide a appropriately sized window.

0

精彩评论

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