Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- window.fbAsyncInit = function () {
- FB.init({
- appId: '4##############',
- xfbml: true,
- status: true,
- cookie: true,
- version: 'v2.11'
- });
- window.FB.Event.subscribe('edge.create', function (response) {
- jQuery("#fb-code input").val("<?php echo Mage::getStoreConfig('fbpromo/settings/couponcode'); ?>");
- });
- window.FB.Event.subscribe('edge.remove', function (response) {
- jQuery("#fb-code input").val("Code will appear here");
- });
- };
- (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 = "//connect.facebook.net/en_US/sdk.js";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));
- </script>
Add Comment
Please, Sign In to add comment