开发者

Add a facebook share button

I'm trying to add a facebook share button to share a link in my facebook application.

I have the following code in my application:

<fb:share-but开发者_如何学Cton class="meta">
    <meta name="medium" content="mult"/>
    <meta name="title" content="my content"/>
    <meta name="description" content="some content"/>
    <link rel="image_src" href="url to image location" />
    <link rel="target_url" href="mylink"/>; 
</fb:share-button>


Did you add xml namespace for fbtags into your page?

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">


Hi use this code and it will start working.

Script: stLight.options({publisher:'a6a03b49-3e57-4d13-97cc-d54044e09dc5'});

Button Code:

Change Link according to your project. First try it in new file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜