javascript - Not Capturing FB Like Event -


I have placed the button using the iframe code like FR ...

For buttons here The code is: & lt; Iframe src = "// www.facebook.com/plugins/like.php?href=https%3A%2F%2Fmadamebridal.com%2Fdev%2Fcheckout%2Fonepage%2F& send = false & amp; layout = Standard & amp; width = 450 & show_faces = True & amp; amp; amp; & amp; amp; amp; amp; amp; amp; amp; amp ;; no "Frameborder =" 0 "style =" border: none; overflow: hidden; width: 450px; height: 80px; "allowTransparency =" true "& gt; & Lt; / Iframe & gt;

And I'm using this code to capture events like FB ...

Here's the code:

 < Code> window FbAsyncInit = function {(function (d, s, id) {var js, fjs = d.getElementsByTagName (s) [0]; if (d.getElementById (id)) returns; js = d.createElement (S); Js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore (JS, FJS);} (document, ' Script ',' Facebook-jssdk ')); // Additional initialization code here fb.eventsssbib ('ed. Quet', function) {alert ('you this yeha' liked;});}   

but .. It does not work.

Your question is not quite clear when you go to the doctor What you do not say, I feel pain and hopefully you will fix it. Are you loading javascript sdk properly?

This code should work for you, as long as you do not firing other script errors and generally stop working on the Facebook SDK.

& lt; body & Gt; Tag

  
& lt; script & gt; Window.fbAsyncInit = Enable cookies to allow function () {FB.init ({status: true, // check login status cookie: true, // server to use session xfbml: true // parse XFBML};) / / Additional Initialization Code Here FB Event Rbbraib ( 'Edge. Quat', function (response) {alert ( 'Did you like Thess Yea ";}); }; // Load Asynchronous SDK (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, referee);} (document)); & Lt; / Script & gt;

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -