Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add this in the very beginning of swfkrpano_inline-js-singleswf.html and change .html to .php:
- <?php
- $domain = ('http://iampear.com');
- $url = dirname($_SERVER['PHP_SELF']) . '/'; // Gets the current folder path
- $file = pathinfo(__FILE__, PATHINFO_FILENAME); // Gets the current filename without extension
- $fb = ('_fb.jpg'); // the name suffix for the facebook preview image
- ?>
- Then add this anywhere inside the <head></head>:
- <meta property="fb:page_id" content="your_fb_ID" />
- <meta property="og:title" content="Your Title as shown on facebook" />
- <meta property="og:type" content="article" />
- <meta property="og:image" content="<?php echo $domain . $url . $file . $fb;?>" />
- <meta property="og:url" content="<?php echo $domain ?>" />
- <meta property="og:video" content="<?php echo $domain . $url . $file .'.swf';?>" />
- <meta property="og:video:type" content="application/x-shockwave-flash" />
- <meta property="og:video:width" content="398" />
- <meta property="og:video:height" content="460" />
Add Comment
Please, Sign In to add comment