Skip navigation
icecappacino
Currently Being Moderated

Error calling method on NPObject!

Feb 6, 2011 6:47 AM

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?

 
Replies
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 6, 2011 6:50 AM   in reply to icecappacino

    click file/publish settings/flash and tick "permit debugging".  retest to see if you get a problematic line number for that error.

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 6, 2011 7:16 AM   in reply to icecappacino

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

     

    but:

     

    obj.method

     

     

    looks problematic.

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 6, 2011 7:47 AM   in reply to icecappacino

    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()[D:\Work\cartoon\ka\faceboo k\FacebookUser.as:76]
        at ka.facebook::FacebookUser/checkFBStatus()[D:\Work\cartoon\ka\facebook \FacebookUser.as:43]
        at com.facebook.graph::Facebook/handleSessionChange()[D:\Work\cartoon\co m\facebook\graph\Facebook.as:757]
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at flash.external::ExternalInterface$/_callIn()
        at Function/<anonymous>()

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 6, 2011 8:06 AM   in reply to icecappacino

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

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 6, 2011 8:25 AM   in reply to icecappacino

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

     
    |
    Mark as:
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 6, 2011 9:13 AM   in reply to icecappacino
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points