Skip to main content
May 31, 2012
Question

Android Class Name

  • May 31, 2012
  • 1 reply
  • 795 views

Hi,

    I'm developing an air app for android and ios. I'm also integrating the app with facebook, however I don't know what to set "Android Class Name" to in the developer facebook page. I set "Android Package Name" to "air.mypackagename".

    Any ideas? I tried   "air.mypackagename.AppEntry" and "android.intent.action.MAIN" but it didn't work, i.e. I still couldn't log in from the app. By didn't work I mean the call to FacebookMobile.login is made but never returns (no error is thrown and the callback is not called)

    If instead of using Facebook Mobile API I use the Desktop or Web API I can log in just fine; so I assume that the problem is in those Android settings in facebook.

Thanks.

   Sergio.

This topic has been closed for replies.

1 reply

June 1, 2012

Ok, I still don't know what to put as "Android Class Name", however I got the login call working.

Apparently, even though the documentation says the 4th parameter is optional,

public static function login(callback:Function, stageRef:Stage,

                              extendedPermissions:Array,

                              webView:StageWebView = null,

                              display:String = touch):void

it only works if I create a new StageWebView a pass it to the function.

var swb:StageWebView = new StageWebView();

swb.stage = stage;

swb.viewPort = new Rectangle(10, 10, swb.stage.stageWidth-20, swb.stage.stageHeight-50);

FacebookMobile.login(facebookLoginHandler, stage,extendedPermissions,swb );