Skip to main content

facebook share button on laravel

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>


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>


<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

Popular posts from this blog

laravel file manager sorting by time default

Ref :  https://github.com/UniSharp/laravel-filemanager/issues/337 To load files order by "time DESC" you can change the code in vendor/unisharp/laravel-filemanager/src/traits/LfmHelpers.php public function sortFilesAndDirectories($arr_items, $sort_type) { if ($sort_type == 'time') { $key_to_sort = 'updated'; } elseif ($sort_type == 'alphabetic') { $key_to_sort = 'name'; } else { $key_to_sort = 'updated'; } return strcmp($a->{$key_to_sort}, $b->{$key_to_sort}); }); return $arr_items; } with public function sortFilesAndDirectories($arr_items, $sort_type) { if ($sort_type == 'time') { $key_to_sort = 'updated'; } elseif ($sort_type == 'alphabetic') { $key_to_sort = 'name'; } else { $key_to_sort = 'updated'; ...

some important points for web developers and hosting

check dns https://www.whatsmydns.net/ https://check-host.net/ https://www.site24x7.com/ping-test.html attacks https://www.computerhope.com/unix/uping.htm https://vitux.com/linux-ping-command/ https://www.howtoforge.com/linux-ping-command/ https://www.poftut.com/linux-ping-command-tutorial-examples/ https://phoenixnap.com/kb/linux-ping-command-examples https://sandilands.info/sgordon/ping-flooding-dos-attack-in-a-virtual-network https://www.geeksforgeeks.org/ping-command-in-linux-with-examples/

Installing Admin LTE in Laravel

step 1:  Reference---  https://hdtuto.com/article/laravel-56-adminlte-bootstrap-theme-installation-example Step 2 : after completion first reference view this link:    https://github.com/JeroenNoten/Laravel-AdminLTE step 3:  For more additional information view this link:   https://github.com/jeroennoten/Laravel-AdminLTE#2-updating Now you are done statically : https://adminlte.io/blog/integrate-adminlte-with-laravel Steps: 1:  composer require jeroennoten/laravel-adminlte 2: 'providers' => [ .... JeroenNoten\LaravelAdminLte\ServiceProvider::class, ], 3: php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets 5: php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=config 6: php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=views 7: for admin pannel php artisan ...