Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Paste after body
- <div id="fb-root"></div>
- <script>
- window.fbAsyncInit = function() {
- FB.init({ appId: "1775660145900508", status: true, xfbml: true });
- };
- (function() {
- var e = document.createElement("script");
- e.async = true;
- e.src = document.location.protocol + "//connect.facebook.net/en_US/all.js";
- document.getElementById("fb-root").appendChild(e);
- })();
- </script>
- $('.blog_social .fb').click(function(e) {
- e.preventDefault();
- fb_url = 'url';
- fb_title = 'title';
- FB.ui(
- {
- method: 'feed',
- name: fb_title,
- link: fb_url,
- display: 'popup'
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement