Code Monkey home page Code Monkey logo

Comments (11)

pc035860 avatar pc035860 commented on August 18, 2024

Hi @blackfyre ,

It doesn't for now. I think adding the support is just few lines of code away.
Is it a new recently introduced API for canvas apps?

from angular-easyfb.

blackfyre avatar blackfyre commented on August 18, 2024

To be honest, I don't know... that's also why I added the reference for it 😄

On, a side-note... after skimming through your code, I've noticed the the FB get assigned to $window, so something like this:

$window.FB.AppEvents.logEvent($window.FB.AppEvents.EventNames.COMPLETED_REGISTRATION);

actually works :smiley:
But it would still be nicer to have a few ezfb shorthands, to simplify things...

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

Hey, I just pushed two commits for the FB.AppEvents support.
Try ezfb.AppEvents with the lastest commit on master branch.

from angular-easyfb.

blackfyre avatar blackfyre commented on August 18, 2024

Will test it today 😄

from angular-easyfb.

blackfyre avatar blackfyre commented on August 18, 2024

Sorry... It doesn't seem to work...

Tried to log the launch, and

ezfb.AppEvents.activateApp();

I get the error: TypeError: Cannot read property 'activateApp' of undefined

It seems like, the method tries to fire before FB is ready...

from angular-easyfb.

blackfyre avatar blackfyre commented on August 18, 2024

Tried a case, when I knew FB to be ready, and

ezfb.AppEvents.logEvent(ezfb.AppEvents.EventNames.COMPLETED_REGISTRATION);

works.

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

Thanks for the testing. I'll look into it.

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

Hi @blackfyre ,

I made some changes in the code. Please try it again.
Not sure if it works in real canvas apps, though I did write a test spec for it.

from angular-easyfb.

blackfyre avatar blackfyre commented on August 18, 2024

Ji @pc035860, sorry for the late reply... had to do another FB app, and it's in the required phase, for the AppEvents.

The standard events( logEvent() and logPurchase()) work flawlessly, but I'm still having trouble with the activateApp() function call.

I've tried the syntax below, based on the logEvent function call:

ezfb.AppEvents.acticateApp();

UPDATE

F*****ng typo... The activateApp() works, as expected!

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

Great! Thanks a lot for the testing. I'll make a release later today.

from angular-easyfb.

blackfyre avatar blackfyre commented on August 18, 2024

Glad to help 😄

On, a side note... I've been using ezfb for canvas apps, and it works great 😃

from angular-easyfb.

Related Issues (20)

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.