简体   繁体   中英

Fb.ui only shows up after second click

I am creating a Facebook application which should allow the user do post something on his/her wall.

The main actions take place within a Flash movie. When the user is finished the Flash movie uses ExternalConnection to notify the JavaScript. The JavaScript now display a link, that has been hidden all the time and attach a onClick event to this link.

The onClick event looks like this:

Fb.ui({
    method: 'stream.publish',
    message: 'foobar',
},function(response) {
    me.getById("publishcontainer").style.display="none";
});

My problem now is. When I click this link Facebook show the loading window, but nothing happens. If I click the link a second time, Facebook shows the publishing dialog as expected.

Anybody any idea how this problem could be solved?

这是当前 Facebook JavaScript API 的一个错误: http : //bugs.developers.facebook.net/show_bug.cgi?id=10180

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM