我现在有facebook脚本我想在页面加载时将它添加到我的应用程序的Jsx页面
请帮帮我......
该怎么做
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('script');
fbds.async = true;
fbds.src = '//connect.facebook.net/en_US/fbds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '6034631592572346119422348', {'value':'0.00','currency':'USD'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6031592119428&cd[value]=0.00&cd[currency]=USD&noscript=1" /></noscript>
答案 0 :(得分:0)
无论你想要实现什么,
似乎都很奇怪真正的捷径:
doMagicalFacebookStuff()
函数<button onclick='doMagicalFacebookStuff()'>Click</button>
)*&#39; 如果免责声明/许可证允许,否则谷歌如何使用facebook连接。