How do you debug facebook connect apps and xfbml parsing using the javascript sdk?

限于喜欢 提交于 2019-12-12 08:18:01

问题


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:

  • 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"
     });
    
  • includes the debug sdk

    <script src="http://static.ak.fbcdn.net/connect/en_US/core.debug.js"></script>
    

Can't get anything to work.


回答1:


I don't think the debug is supported anymore for FB.init() in the SDK. This question may be irrelevant now.



来源:https://stackoverflow.com/questions/4713882/how-do-you-debug-facebook-connect-apps-and-xfbml-parsing-using-the-javascript-sd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!