Nas últimas semanas procurei bastante e testei diversos plugins para adicionar a caixa de comentário do Facebook e os botões Like. Nos meus testes o que fez o proposto com mais facilidade foi o Plugin Total Facebook.
Já que o Facebook não notifica automaticamente sobre novos comentários e Likes eu decidi utilizar o Javascript SDK para verificar quando um comentário ou Like são feitos e fazer uma requisição (ajax) a uma página que seria a responsável por me notificar.
Diversos testes meus, retornavam que o objeto FB era inexistente (Uncaught ReferenceError: FB is not defined), que o FB.init já havia sido chamado (FB.init has already been called – this could indicate a problem) e outros erros. Então, modifiquei a função fbsdk_includeWFC() para fazer inicialização assincrona e cadastrei um método para ser chamado quando os eventos “comment.create” (comentário) e “edge.create” (like) forem disparados.
[code lang=”php”]
function fbsdk_includeWFC(){
$wfcglb = get_option(‘wfc_global’);
echo ”
window.fbAsyncInit = function() { FB.init({ appId : '" . $wfcglb['appid'] . "', // App ID //channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML });
FB.Event.subscribe('comment.create', function (response) { jQuery.ajax({ url: 'test.html', //success: function (data) { alert(response.href); }, //error: function (data) { alert(response.href); } }); }); };
FB.Event.subscribe('edge.create', function (response) { jQuery.ajax({ url: 'test2.html', //success: function (data) { alert(response); }, //error: function (data) { alert(response); } }); }); };
(function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = '//connect.facebook.net/en_US/all.js'; ref.parentNode.insertBefore(js, ref); }(document));“;
echo ““;
}
[/code]
Agora você pode modificar as funções adicionadas em event.subscribe, fazer uma requisição para uma página PHP, passando como parametro a referencia e esta pagina ficara responsavel por enviar um e-mail para você.
Matheus
http://riotstories.co.uk/author/distantaio1435/
https://www.cnrxw.cn/?19792
http://riotstories.co.uk/author/distantaio1435/
http://riotstories.co.uk/author/distantaio1435/
https://www.8a.nu/user/linda-lost
http://bbs.51pinzhi.cn/home.php?mod=space&uid=7715821
https://tyj.ltd/home.php?mod=space&uid=7161&do=profile&from=space&mobile=no
https://tyj.ltd/home.php?mod=space&uid=7161&do=profile&from=space&mobile=no
https://metro-estates.ch/agent/lily25/
http://www.lada-xray.net/member.php?u=31528
https://m.kongminghu.com/?248438
https://greyhoundgreetings.com/author/containerltd5796/
https://greyhoundgreetings.com/author/robertsysc25/
https://forums.maxperformanceinc.com/forums/member.php?u=244828
https://forums.maxperformanceinc.com/forums/member.php?u=244828
https://buildingraja.com/agent/installationauz770/
https://00lk.com/?50840
https://www.imxy28.com/space-uid-399635.html
https://www.imxy28.com/space-uid-399635.html
https://fabble.cc/climbqwx60
http://hkeverton.com/forumnew/home.php?mod=space&uid=649396
https://www.halalflash.com/author/invitedyxa524/
https://fabble.cc/coordinatedpah71
https://selficlub.com/apricotrural
https://cruiseschoolet.com/author/gpsdhv402/
https://www.gta5-mods.com/users/madelyn541
https://q.044300.net/home.php?mod=space&uid=2594243&do=profile&from=space
http://www.isexsex.com/space-uid-3189005.html
https://longbets.org/user/madelyn541/
https://buildingraja.com/agent/correspondingbdt30/
https://espritgames.com/members/50881463/
https://destaquebrasil.com/saopaulo/author/madelyn541/
Марка 12Х18Н10Т — одна из самых популярных марок аустенитной нержавеющей стали в промышленности. Добавка титана в составе сталь не склонна к межкристаллитному разрушению даже после длительного нагрева.
Характеристики и применение: https://stal-12h18n10t.ru/gost
Марка востребована в пищевом производстве — при производстве трубопроводов и резервуаров. Зарубежные аналоги: AISI 321, EN 1.4541 (Европа), SUS 321 (Япония).
May I just say what a comfort to uncover someone that actually understands what they’re talking about on the net. You actually understand how to bring a problem to light and make it important. More and more people should read this and understand this side of the story. It’s surprising you’re not more popular since you surely have the gift.
I’ve been playing at Tenobet since roughly four months now, mostly weekends, mostly spins during the week and a bit of Premier League betting on Saturdays. Not gonna lie, I first joined after a mate wouldn’t shut up about it, so I went in fairly sceptical.\n\nThe slots side is decent — somewhere around 3,000 slots if you count everything. All the big studios are in: Pragmatic, Play’n GO, Play’n GO, Betsoft. My go-tos are Gates of Olympus and Sweet Bonanza, although Bonanza Megaways is where I lose the most. Live side is Evolution, which is basically the gold standard — real croupiers, roulette round the clock, plus Crazy Time and Lightning Roulette.\n\nThe sign-up offer at Tenobet maxes at ?125 plus a chunk of free spins, wagering sits at 30x , so nothing scandalous but read it properly. No free-money thing unless I missed it, min deposit was ?10 to trigger it. If you want the current terms have a look at tenobet sports rather than trusting my memory. The one thing that annoyed me: bonus expiry is tight and I wasted a load.\n\nPayouts have been fine. Skrill came back in under 24 hours for me, Visa took closer to three days, which is just how cards are. Tenobet also takes Neteller, Mastercard and crypto, though I haven’t bothered with Bitcoin. The ID check was a bit of a faff — passport and a utility bill, done in a day.\n\nNo app on the Play Store, it’s a browser version which honestly works — I use it more than desktop now. Live chat on Tenobet answered in under ten minutes when I asked about a stuck bonus, human, not a bot loop. It’s UKGC licensed, which is the first thing I check these days.
I’ve been playing at Tenobet for maybe five months now, usually slots during the week and the odd football action come Saturday. To be fair, I only signed up because a mate sent me a link, and I half expected it to be rubbish.\n\nThe lobby’s decent — they claim over 2,000 games if you count everything. All the big studios are in: Pragmatic, NetEnt, Play’n GO, Betsoft. I mostly stick to Gates of Olympus and Sweet Bonanza, although the Megaways stuff is where I lose the most. Live side is Evolution, which is basically the gold standard — real croupiers, roulette round the clock, plus Crazy Time and Lightning Roulette.\n\nThe welcome thing at Tenobet maxes at ?125 plus a batch of bonus spins, the playthrough is 30x , so about standard. No no deposit freebie as far as I could see, you need a tenner minimum. If you want the current terms see tenobet rather than trusting my memory. The one thing that annoyed me: bonus expiry is tight and I wasted a load.\n\nPayouts have been fine. E-wallet took about a day for me, card took 2-3 days, which is normal for UK banking. They do Bitcoin and the usual e-wallets, though I haven’t bothered with Bitcoin. Verification was the usual — passport and a utility bill, cleared overnight.\n\nThere’s no standalone app that I found, it’s a browser version and loads quick enough on my phone — I’ve placed bets on it on the train plenty. Support on Tenobet took under ten minutes both times, actual person, decent English. It’s UKGC licensed, which is why I stuck around.
Wonderful blog! I found it while browsing on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it
Right now it seems like WordPress is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog?