Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>Curta para conferir nossas ofertas</h2>
- <div class="fb-like" data-href="http://www.lojasmm.com" data-send="false" data-width="450" data-show-faces="false"></div>
- <script type="text/javascript">
- window.fbAsyncInit = function () {
- FB.init({appId: '682539928509951', status: true, cookie: true, xfbml: true});
- FB.Event.subscribe('edge.create', function (href, widget) {
- //alert('Legal, você curtiu o link: ' + href);
- document.write('Vai ou exibe página de promoções');
- });
- FB.Event.subscribe('edge.remove', function (href, widget) {
- alert('Descurtiu');
- });
- };
- (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/pt_BR/all.js";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));
- FB.login(function (response) {
- if (response.authResponse) {
- console.log('Welcome! Fetching your information.... ');
- FB.api('/me', function (response) {
- console.log('Good to see you, ' + response.name + '.');
- });
- } else {
- console.log('User cancelled login or did not fully authorize.');
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement