如何使用javascript sdk调试Facebook连接应用程序和xfbml解析? [英] How do you debug facebook connect apps and xfbml parsing using the javascript sdk?
本文介绍了如何使用javascript sdk调试Facebook连接应用程序和xfbml解析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法使Facebook JavaScript SDK解析xfbml。我想调试,但在FB文档中看不到任何东西。
I'm failing making the Facebook javascript SDK work to parse xfbml. I'd like to debug but I can't see anything in the FB documentation about it.
我探索了以下解决方案及其组合:
I explorered the following solutions, and combinations of them:
-
为日志创建一个div:
Creating a div for the log:
<div id="log-container">
<div id="log"></div>
</div>
设置详细程度级别:
Setting the verbosity level:
FB.init({
appId : 'app_id',
status : true,
cookie : true,
xfbml : true,
level : "debug"
});
包含调试sdk
includes the debug sdk
<script src="http://static.ak.fbcdn.net/connect/en_US/core.debug.js"></script>
无法获得任何工作/ p>
Can't get anything to work.
推荐答案
我不认为SDK中的FB.init()支持调试。这个问题现在可能无关紧要。
I don't think the debug is supported anymore for FB.init() in the SDK. This question may be irrelevant now.
这篇关于如何使用javascript sdk调试Facebook连接应用程序和xfbml解析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文