Copy link to clipboard
Copied
Hey,
I'm using AS3 and the Facebook Graph API to run an application. When I attempt to run it I get the error
Error calling method on NPObject!
I'm not sure what to look for here... My facebook settings are correct, I'm using swf embed...the allowscriptaccess is on, debugging shows that i am able to get information from facebook. Yet I get this error.
Where should I start?
in addition to click "permit debugging" you can solve all almost all problems (except network-related ones) using the trace() function.
Copy link to clipboard
Copied
click file/publish settings/flash and tick "permit debugging". retest to see if you get a problematic line number for that error.
Copy link to clipboard
Copied
Well,
I did that and I don't see much difference...where is the debugging suppose to be?
anyway I use FF and Firebug and I exporting to flash player 9
The error seems to be coming from a line of code
function (params) {86 obj = FB.JSON.parse(params);87 cb = function (response) {FBAS.getSwf().uiResponse(FB.JSON.stringify(response), obj.method);};88 FB.ui(obj, cb);89 }90 function () {91 session = FB.getSession();92 return FB.JSON.stringify(session);93 }
I assume that this is from the FB graph swf wrapper?
The object in question seems to be the session I get back from facebook. The thing is I successfully get it sooo I'm kinda stumped as to what really is the problem here...
Copy link to clipboard
Copied
copy and paste the error message after ticking "permit debugging"
but:
obj.method
looks problematic.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Does this have anything to do with domain security policies of flash player 9?
Copy link to clipboard
Copied
i see this error:
ReferenceError: Error #1069: Property id not found on com.facebook.graph.data.FacebookSession and there is no default value.
at ka.facebook::FacebookUser/_onGetUserInfo()
at ka.facebook::FacebookUser/checkFBStatus()
at com.facebook.graph::Facebook/handleSessionChange()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flash.external::ExternalInterface$/_callIn()
at Function/<anonymous>()
Copy link to clipboard
Copied
How do you debug with Flash CS3? I was triyng just now and I can't follow what the adobe documentation says...any tuts on this?
Copy link to clipboard
Copied
in addition to click "permit debugging" you can solve all almost all problems (except network-related ones) using the trace() function.
Copy link to clipboard
Copied
in addition to click "permit debugging" you can solve all almost all problems (except network-related ones) using the trace() function.
So you are saying trace() will work in FF firebug when you set permit debugging?
Copy link to clipboard
Copied
trace() will work in firebug if you get the flashbug add-on.
Copy link to clipboard
Copied
no kidding...thanks...
I googled a bit and got MonsterDebugger....hopefully It will help me out
You were right about the error
I thought it may have led to me not being able to upload to facebook...but alas still no go...
I'll figure it out...thanks for the help.
Copy link to clipboard
Copied
here: https://addons.mozilla.org/en-US/firefox/search/?q=flashbug&cat=1%2C0&x=13&y=13
Copy link to clipboard
Copied
Isn't that kind of strange?
the object was returned with said parameter and value....