Advertising

Thursday 1 December 2016

How to create facebook share button using pop up window





Learn to create share button on your blogs and website. You can share your posts on facebook, google+, twitter, instagram etc using this simple share button.In addition you also learn how to insert
youtube videos in your websites.So, don't wait, use it to grow your audience on internet.


Mypage.html

<!Doctype html>
<html>
<head>
<title>Share on facebbok</title>
<script>
function openwindow()
{

window.open("https://www.facebook.com/dialog/share?app_id=87741124305&href=https%3A//www.youtube.com/attribution_link%3Fa%3DLwHAJyQ2U58%26u%3D%252Fwatch%253Fv%253DlK7kH2by7AU%2526feature%253Dshare&display=popup&redirect_uri=https://www.youtube.com/facebook_redirect","Share on facebook",'width=700,height=620');

}
</script>
</head>
<body>
<h1>How to create browser app in android studio</h1>
<iframe width="560" height="315" src="https://www.youtube.com/embed/lK7kH2by7AU" frameborder="0" allowfullscreen></iframe>
<br/>
<a href="#"><img src="fb.png" height="50px" width="50px" onclick="openwindow()"></a>
<p>Click to share on facebook</p>
</body>
</html>