Comments (9)
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.
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.
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.
Here's a simple plunk for like/unlike event.
http://plnkr.co/edit/KHO0waFmaTdvd5rEk0BN?p=preview
from angular-easyfb.
And for comments.
http://plnkr.co/edit/5J6v8umriAOH6OUlfLp9?p=preview
from angular-easyfb.
Thanks for your help @pc035860 , it is working like charm!
from angular-easyfb.
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.
@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.
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)
- Page Plugin not loading on iPad Safari iOS 9.2.1 HOT 1
- "Main" field in package.json is wrong HOT 2
- Upload photos from camera source HOT 3
- Won't initialize when `xfbml: false` given
- Unsupported Browser:: Facebook login does not work from chrome on iPhone. HOT 2
- Minified version of 1.4.4 causes injector error HOT 2
- Dynamic set the locale HOT 2
- Get ezfb to work with import HOT 2
- To show all public posts that are present in Page or a person in facebook?? HOT 3
- apk file created by android studio using ionic framework not working HOT 2
- facebook endpoint changed from *.net to *.com HOT 2
- Angular2 Version? HOT 2
- can i make the custom fb like button and call some controller function on click of that button. HOT 1
- doesn't render FB login button after navigating to different page and back HOT 3
- long-lived token
- How to use fb-login-button directive HOT 1
- In Android device error getting the sdk
- Login Button doesn't work HOT 3
- No way to exchange short-term tokens for long-term tokens
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-easyfb.