https://laracasts.com/discuss/channels/general-discussion/facebook-share?page=0
<a href="https://www.facebook.com/sharer/sharer.php?u=YourPageLink.com&display=popup"> share this </a>
<a href="https://www.facebook.com/sharer/sharer.php?u=YourPageLink.com&display=popup"> share this </a>
https://developers.facebook.com/docs/plugins/like-button#configurator
https://sujipthapa.co/blog/a-complete-guide-to-integrate-facebook-like-and-share
http://www.tutoriallaravel.com/laravel-example/laravel-social-share-button/
<a href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" display="popup" target="_blank"> share this </a>
<button><a class=".social-share" href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" target="_blank"> Share on Facebook </a></button><br>
<a href="https://twitter.com/intent/tweet?url={{ urlencode(Request::fullUrl()) }}" target="_blank"> Share on Twitter </a><br> <a href="https://plus.google.com/share?url={{ urlencode(Request::fullUrl()) }}" target="_blank"> Share on Google </a>
// Yo tala ko important xa... complete code xa
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="fb-root"></div>
// script lai body start huni bittikai raakhni...
<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 = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.1&appId=252819208792591&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
//yo mathi ko le like and share dekhaauxa... localhost maa ni dekhaauxa
<a href="abc.com.np" onclick="window.open('print.html','newwindow','width=300,height=250');return false;">Click</a>
<button><a class=".social-share" href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" onclick="window.open('print.html','newwindow','width=300,height=250');return false;"> Share on Facebook </a></button><br>
</html>
<a href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" display="popup" target="_blank"> share this </a>
<button><a class=".social-share" href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" target="_blank"> Share on Facebook </a></button><br>
<a href="https://twitter.com/intent/tweet?url={{ urlencode(Request::fullUrl()) }}" target="_blank"> Share on Twitter </a><br> <a href="https://plus.google.com/share?url={{ urlencode(Request::fullUrl()) }}" target="_blank"> Share on Google </a>
// Yo tala ko important xa... complete code xa
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="fb-root"></div>
// script lai body start huni bittikai raakhni...
<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 = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.1&appId=252819208792591&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
//yo mathi ko le like and share dekhaauxa... localhost maa ni dekhaauxa
<a href="abc.com.np" onclick="window.open('print.html','newwindow','width=300,height=250');return false;">Click</a>
<button><a class=".social-share" href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" onclick="window.open('print.html','newwindow','width=300,height=250');return false;"> Share on Facebook </a></button><br>
</html>
<button> <a href="https://www.facebook.com/sharer/sharer.php?u=sabinbajgain.com.np" id="sharing" display="popup" target="_blank"> <i class="fa fa-share-alt"></i> </a> </button>
<script> $(window).on('load', function() { // var pathname = window.location.pathname; // Returns path only var url = window.location.href; var link='https://www.facebook.com/sharer/sharer.php?u='+url; // alert(link); $('#sharing').attr('href',link); }) </script>
<script> $(window).on('load', function() { // var pathname = window.location.pathname; // Returns path only var url = window.location.href; var link='https://www.facebook.com/sharer/sharer.php?u='+url; // alert(link); $('#sharing').attr('href',link); // $('#fbshare').data('href',link); $('#fbshare').data('href',link); }) </script>
<div class="fb-like" id="fbshare" data-href="" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
Comments
Post a Comment