Code Monkey home page Code Monkey logo

Comments (9)

pc035860 avatar pc035860 commented on August 18, 2024

Hi @bdairy , you can find information about event subscription at facebook developer site.

Use ezfb.Event.subscribe instead of FB.Event.subscribe with angular-easyfb.

And as far as I know, there are events for

but no event for

  • shares a page

from angular-easyfb.

bdairy avatar bdairy commented on August 18, 2024

Thanks @pc035860 ,, Ive added the following to my controller :

    ezfb.Event.subscribe('comment.create', $scope.commentCreateEvent);
    ezfb.Event.subscribe('comment.remove', $scope.commentCreateEvent);
    ezfb.Event.subscribe('edge.create', $scope.page_like_or_unlike_callback);
    ezfb.Event.subscribe('edge.remove', $scope.page_like_or_unlike_callback);
    $scope.commentCreateEvent = function (response) {
        console.log(response);
    }  
    $scope.page_like_or_unlike_callback = function(response){
        console.log(response);
    }

and this is my config

       ezfbProvider.setInitParams({
            // This is my FB app id for plunker demo app
            appId: 'xxxxxxxxxxx'
        });

But nothing happens,, the log never being updated,,, is that because I am testing on my local machine,, I am using a test facebook app.. and the login, logout.comment, like are working,, but the log never updated .. should I test this online only?

from angular-easyfb.

bdairy avatar bdairy commented on August 18, 2024

BTW, I tested that on your plnkr,, the social plugins.. nothing happened,,, it is obviously that I am missing something,, I hope you can help ,, thanks

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

Here's a simple plunk for like/unlike event.
http://plnkr.co/edit/KHO0waFmaTdvd5rEk0BN?p=preview

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

And for comments.
http://plnkr.co/edit/5J6v8umriAOH6OUlfLp9?p=preview

from angular-easyfb.

bdairy avatar bdairy commented on August 18, 2024

Thanks for your help @pc035860 , it is working like charm!

from angular-easyfb.

bdairy avatar bdairy commented on August 18, 2024

Hi there.. Just wanna know if there is a subscription to rack events on the page plugin.. I didn't find any,, do you guys have any idea?

from angular-easyfb.

pc035860 avatar pc035860 commented on August 18, 2024

@bdairy What kind of event you want to track?

I think the events listed here is all you got.
https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/v2.6

from angular-easyfb.

bdairy avatar bdairy commented on August 18, 2024

Thanks man,, I already checked that screen,, what I want is to know if a users clicks on facebook page plugin... like the page,, or navigate to the page ,, or click on a face icon..

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.