Alert() and Facebook’s FBJS

As you may have noticed developing some facebook application, alert() function doesn’t work.

Here it is a valid substitute:
var dialog = new Dialog(Dialog.DIALOG_POP).showChoice(‘Window title’,’Alert content’,’Yes’,’No’);

I tested it and works like a charm.

Annunci