daogr / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

fbml.dialog call #271

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

var obj:Object = {  
    fbml:'<fb:header icon="false" decoration="add_border">Hello World!</fb:header><fb:profile-pic uid="'+Facebook.getSession().uid+'"></fb:profile-pic>',
        size: {width:'800', height:'600'}
}
Facebook.ui("fbml.dialog",obj,callback);

What is the expected output? What do you see instead?
Open the dialog box. Instead this errors comes up in FF console:

missing ) after argument list
[Break On This Error] try { 
__flash__toXML(FBAS.ui("{\"metho...width\":\"800\",\"height\":\"600\"}}")

What version of the product are you using? On what operating system?
Graph API 1.6

Original issue reported on code.google.com by alam.moh...@gmail.com on 8 Mar 2011 at 1:55

GoogleCodeExporter commented 8 years ago
from what I see, the error message isn't lying:
this: __flash__toXML(FBAS.ui("{\"metho...width\":\"800\",\"height\":\"600\"}}")
should be this: 
__flash__toXML(FBAS.ui("{\"metho...width\":\"800\",\"height\":\"600\"}}"))

Original comment by rovertn...@gmail.com on 8 Mar 2011 at 9:56

GoogleCodeExporter commented 8 years ago
yea i noticed that too, but how do i fix it? i see no problem in the function 
parameters or the obj var itself, .... 

Original comment by alam.moh...@gmail.com on 9 Mar 2011 at 9:40

GoogleCodeExporter commented 8 years ago
I'm not sure you're seeing what I changed. If you look at the "should be this:" 
line of my last comment, you'll noticed I added a ")" to the end. Try that.

Original comment by rovertn...@gmail.com on 17 Mar 2011 at 9:37

GoogleCodeExporter commented 8 years ago

Original comment by edwar...@gmail.com on 6 Oct 2011 at 5:57