Code Monkey home page Code Monkey logo

Comments (6)

marpies avatar marpies commented on June 18, 2024

Are you also using AccountKit ANE? You do not need to patch the SDK if you are using only AIRFacebook.

Show me the list of ANEs that you are including in your app.

from airfacebook-ane.

appearance avatar appearance commented on June 18, 2024

Apart from your anes, I am using my own ANE which includes android-support-v13.jar. Is this causing the problem? If yes, how can I solve it?

from airfacebook-ane.

marpies avatar marpies commented on June 18, 2024

I need to know exactly what ANEs you're using, even if they're mine.

android-support-v13 library shouldn't cause a problem.

from airfacebook-ane.

appearance avatar appearance commented on June 18, 2024

You misunderstood my reply. I said I am using following ANEs:

  1. TWShare.ane
  2. com.marpies.ane.facebook.ane

That's it. You know TWShare.ane? This ANE was created by me, myself. I have used android-support-v13.jar in it. I included android-support-v13.jar while building the ANE.

I rebuilt my TWShare.ane by removing android-support-v13.jar from it as it's included in your facebook.ane, then it compiled without any error. Thank you for this reply.

Can you tell me how can I provide EventListeners to AIRFacebook.init() function if I am writing my action script code in conventional timeline method. I am not using ActionScript classes.

Thank you.

from airfacebook-ane.

marpies avatar marpies commented on June 18, 2024

Android-support-v13.jar is not included in com.marpies.ane.facebook.ane. Android-support-v4.jar is included in com.marpies.ane.androidsupport.ane. If you need v13 then use that but do not include my support ANE.

You said you replaced your adt.jar and runtimeclasses.jar but it's only required for AccountKit ANE. You should use default AIR SDK files with this Facebook ANE.

If you're not using classes then use the traditional event system:

AIRFacebook.addEventListener( AIRFacebookCachedAccessTokenEvent.RESULT, onCachedAccessTokenResult );
AIRFacebook.addEventListener( AIRFacebookBasicUserProfileEvent.PROFILE_READY, onBasicUserProfileReady );
AIRFacebook.addEventListener( AIRFacebookEvent.SDK_INIT, onFacebookSDKInit );

AIRFacebook.init( ... );

function onFacebookSDKInit( event:AIRFacebookEvent ):void {
    AIRFacebook.removeEventListener( AIRFacebookEvent.SDK_INIT, onFacebookSDKInit );
}

function onCachedAccessTokenResult( event:AIRFacebookCachedAccessTokenEvent ):void {
    AIRFacebook.removeEventListener( AIRFacebookCachedAccessTokenEvent.RESULT, onCachedAccessTokenResult );
}

function onBasicUserProfileReady( event:AIRFacebookBasicUserProfileEvent ):void {
    AIRFacebook.removeEventListener( AIRFacebookBasicUserProfileEvent.PROFILE_READY, onBasicUserProfileReady );
    trace( event.basicUserProfile );
}

from airfacebook-ane.

appearance avatar appearance commented on June 18, 2024

You are right. facebook.ane has android-supportv4.jar. TWShare.ane was bundled with android-support.v13 and this in-turn contains v4 also. So, it worked if I remove support-v13.jar from TWShare.ane.

Yes, I didn't repace adt.jar and runtimeclasses.jar after you replied to the first question.

And thanks a lot for traditional code method example.

from airfacebook-ane.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.