• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Error calling method on NPObject!

Contributor ,
Feb 06, 2011 Feb 06, 2011

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?

TOPICS
ActionScript

Views

6.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 06, 2011 Feb 06, 2011

in addition to click "permit debugging" you can solve all almost all problems (except network-related ones) using the trace() function.

Votes

Translate

Translate
Community Expert ,
Feb 06, 2011 Feb 06, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2011 Feb 06, 2011

Copy link to clipboard

Copied

copy and paste the error message after ticking "permit debugging"

but:

obj.method

looks problematic.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

Copy link to clipboard

Copied

I'll do better

http://www.kendallarneaud.me/facebook/

Take a look at the app

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

Copy link to clipboard

Copied

Does this have anything to do with domain security policies of flash player 9?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2011 Feb 06, 2011

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>()

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2011 Feb 06, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2011 Feb 06, 2011

Copy link to clipboard

Copied

trace() will work in firebug if you get the flashbug add-on.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2011 Feb 06, 2011

Copy link to clipboard

Copied

LATEST

here:  https://addons.mozilla.org/en-US/firefox/search/?q=flashbug&cat=1%2C0&x=13&y=13

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 06, 2011 Feb 06, 2011

Copy link to clipboard

Copied

Isn't that kind of strange?

the object was returned with said parameter and value....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines