對不起,我搜索了一天半,但找不到具體的答案。OpenGraph值
我的Facebook Like按鈕不會顯示在IE,Chrome或Firefox上。我正在使用Javascript。
- 我有需要的HTML補充。
我需要把元標記 元屬性=「OG:標籤名」 CONTENT =「變量值」
我能得到一個區爲例「變量名」和「變量值」?
我不知道填寫什麼!我應該在正文後面有Javascript SDK;但是,我不知道該怎麼把一個APP_ID爲:
<script> window.fbAsyncInit = function() { FB.init({ appId : 'YOUR_APP_ID', // App ID //CAN I GET AN EXAMPLE OF YOUR_APP_ID, please? channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File //is channel.html the page it's on? status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); // Additional initialization code here }; // Load the SDK Asynchronously (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)); </script>
我得到如此沮喪!請幫幫我!