GRiMe2D / facebook-actionscript-api

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

The ExternalInterface is not available in this container #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Flex 4.5 Mobile application using the FacebookMobile API
2. Do a simple login with the Facebook api
3. Try to do the following call... Facebook.getSession().secret

What is the expected output? What do you see instead?

Expected output: I get the session

What I get: I get the following error... which is a crash in line 683 of 
Facebook.as

Error: Error #2067: The ExternalInterface is not available in this container. 
ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 
and greater, or other browsers that support NPRuntime.
    at Error$/throwError()
    at flash.external::ExternalInterface$/call()
    at com.facebook.graph::Facebook/getSession()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/Facebook.as:684]
    at com.facebook.graph::Facebook$/getSession()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/Facebook.as:571]
    at views::LoginView/connectToFBChat()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:88]
    at views::LoginView/fbInitCallback()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/views/LoginView.mxml:52]
    at com.facebook.graph::FacebookMobile/handleUserLoad()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/FacebookMobile.as:449]
    at com.facebook.graph.core::AbstractFacebook/handleRequestLoad()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/core/AbstractFacebook.as:188]
    at com.facebook.graph.net::FacebookRequest/dispatchComplete()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/net/FacebookRequest.as:423]
    at com.facebook.graph.net::FacebookRequest/handleDataLoad()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/net/FacebookRequest.as:414]
    at com.facebook.graph.net::FacebookRequest/handleURLLoaderComplete()[/Users/edgar/Documents/Adobe Flash Builder 4.5/socialMessenger/src/com/facebook/graph/net/FacebookRequest.as:392]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

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

Flex 4.5 with Flash Builder 4.5

Mac OS X Version 10.6.8

Please provide any additional information below.

IS the FlashMobile API suppose to work with Flex 4.5 right off the back?

Original issue reported on code.google.com by edgar...@gmail.com on 23 Aug 2011 at 11:29

GoogleCodeExporter commented 9 years ago
It looks like you're using the Facebook API in your "connectToFBChat" method, 
try switching that to FacebookMobile.

Original comment by rovertn...@gmail.com on 29 Aug 2011 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 7 Oct 2011 at 3:39