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

Flash Facebook Mobile Integration

New Here ,
Nov 25, 2014 Nov 25, 2014

Copy link to clipboard

Copied

As facebook has revised the platform types for applications, I need a sample configuration of the facebook app to be configured so that a flash based mobile iOS app can connect to facebook login page and proceed from there.

I have read online blogs where it is written to get the app id etc, but no information on app type. If I follow desktop based, I can create a website based facebook app but now my facebook login method throws invalid URI.

Any suggestions are welcome.

Views

665

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
New Here ,
Nov 26, 2014 Nov 26, 2014

Copy link to clipboard

Copied

Any help 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
Explorer ,
Nov 14, 2016 Nov 14, 2016

Copy link to clipboard

Copied

I am also working on an ane development named xfFB which is base on Facebook SDK 4 over iOS. I put the code below as native library for login:

-----------------------

  [self dispatchEvent:@"LOGIN_IN_PROGRESS" withMessage: @"iOS login to facebook..."];

  FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];

  [login

   logInWithReadPermissions: permissions

   fromViewController:nil // block below is not executed or not interacting with the app.

   handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {

   if (error) {

   NSLog(@"Process error");

  [xfFB dispatchEvent:failed withMessage:[error localizedDescription]];

  } else if (result.isCancelled) {

   NSLog(@"Cancelled");

  [xfFB dispatchEvent:success withMessage:@"CANCEL"];

  } else {

  NSLog(@"Logged in");

  NSString *jsonString =[self obj2Json: (NSObject *)result];

  [xfFB dispatchEvent:success withMessage: jsonString];

  }

  }];

------------------

The code did awake Facebook native but just simply return to my app without execute the handler block. I am wondering that whether the fb 4.x SDK can be integrated with ActionScript or not since it takes too many controls to let app to get involve the process.

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
Explorer ,
Nov 21, 2016 Nov 21, 2016

Copy link to clipboard

Copied

LATEST

To accomplish the login, I found a callback will go the as3 app with a INVOKE event after executing the code above. You as3 app should listen to that event, then you need to open the returned url with your app's delegate for authorization. B@e careful in handling the received invoke, not only the url but also the option keys. The code inside the block will only be executed when the correct option keys pass to the delegate.

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