Why FB.ui does not work even after loading javascript sdk?

*爱你&永不变心* 提交于 2019-12-04 18:55:21
mrtom

There's nothing wrong with your code per se.

Running outside of fbrell there is no Log object, so it will fail on the FB.ui line, but the failure has nothing to do with the FB.ui call.

Running within fbrell it seems to fail because it can't find the publish1 function in the scope of the button.

Here's a test of essentially your code, with a bit of tidying up of whitespace and the removal of the Log line. It can successfully post to my wall:

http://telliott.net/facebookExamples/simpleAsyncInit.html

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