Show Mobile Navigation

Ads

Thursday 9 May 2013

,

Facebook Share Button For Websites

Unknown - Thursday, May 09, 2013
The Facebook Send Button helps you to send private messages to specific friends or specific Groups.This will helps you to send Link, some content and images in meassage.
Step 1: Copy and paste the below code after <body> tag
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Step 2: Place the code for your Send button wherever you want the send button to appear on your page.
<div class="fb-send" data-href="http://www.mobiappsweb.com"></div>

Step 3: Finally whole HTML code like the below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Facebook share button Demo | mobiappsweb.com</title>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<table align="center" width="750">
<tr>
<td align="center" valign="middle">
<strong>Facebook Share Button Demo Click on Send button you can see the demo</strong><br />
  <div class="fb-send" data-href="http://www.mobiappsweb.com"></div>
</td>
</tr>
</table>
</body>
</html>

0 comments:

Post a Comment