Facebook like button on click - facebook

Is there any way to listen on click facebook like button in api version v1.12 according to this article:
https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/

There's no way to track facebook like event legally. edge.create event was deprecated (https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/)
In the other hand, trying to track facebook like and then give user something is not allowed according to https://developers.facebook.com/docs/apps/examples-platform-policy-4.5
Thanks luschn for comments

Related

Is it possible to prepoulate the comments box while posting to facebook from an application?

I have added the facebook recommend/like button in my application. All I want is when user click on the recommend/like button then the comments box should be pre-poulated with some default text.
Is it possible to do this? if so how can i achieve that?
If you're talking about a facebook comments box: its not possible. Checkout this: Facebook Like Button with prepopulated Comment
Otherwise, if its a custom comment box, this will need to be done via javascript SDK. Check out the documentation for subscribing to like events on a page here.

Facebook Like button url?

Is there an actual link that if clicked and someone is logged in will have them automatically like my fan page? I'm sick of FaceBook's terrible code and am looking for alternatives for a better "Like" button. Suggestions are welcomed, Thank you!
There is nothing other than the Like button. Your only other option is to use a Like box.
https://developers.facebook.com/docs/reference/plugins/like-box/
If you meant a Like Box, then there is nothing that will achieve what you want.
Better to use the facebook like button because it provides statistics for your site or blog, you can also create or use an app like reference your button.
Facebook Like Button (Graph API v2.3)
Facebook Insights

Choice to Post to Facebook After Clicking Like Button

I noticed at 9gag.com/fast that if you click the Like button, a small option opens up to share that link on the user's wall.
I believe this is not a default option because I have implemented the Like button on my site and it doesn't work that way.
How to get this functionality...
Use FB.Event.subscribe('edge.create') as described here with the JS SDK to catch the event when a user likes your page.
You don't need to subscribe to the like event. The behavior you describe in that link is default. Go to the link generator here: https://developers.facebook.com/docs/reference/plugins/like/ to play around with it. Any time you click on like a little comment box will popup.

Source URL of Facebook Likes for Likebox

My question is regarding the likebox from this page: http://developers.facebook.com/docs/reference/plugins/like-box/
I want to know specifically what pages are generating likes for my Facebook page. For example, are they coming from the home page, individual product pages, or blog? I want to remove the likebox from pages that aren't generating any 'likes'
I was looking at this page: http://developers.facebook.com/docs/reference/plugins/like-box/
Is the edge.create event what I'm looking for here?
By the way, I know about the insights feature on Facebook where I can get stats on 'Like Sources'. I just want to know more specifically what URL's are being used for the Like Box.
Thanks in advance!
The edge.create method will allow you to capture when someone clicks on the Like button so you can do your own recording. If you don't want to write your own tracking code, you can use Google analytics, which is far easier since they do almost everything for you.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html

How to get insights for separate "Like" button(s), not for whole domain

I have put a like button on my web page which is dynamically linked to different Facebook fan pages. I have checked the insights pages of Facebook but it gives an overall count of button clicks from my site. Is there a way to get more detailed information like how many users clicked which Like button?
Facebook documentation mentions a ref tag that can be added to Like button code, however this tag does not show up in insights reports. Also I know I have the chance use JavaScript events to handle reporting personally, but I cannot since I am using iframe version of the button.
Also, is there a way for the Facebook fan page admin (the one that my like button links to) to see that detail exactly? e.g. "xx number of clicks generated with like button from this site (or app--which the like button is tied ?)"
In my opinion, Facebook insights are far from being complete.
If I where you, I would track like events, and visits from like using an analytic tools like Google Analytics. This is what I do for my website, and the website of the company I am working for.
However, Facebook insights can give you complementary metrics (age, gender...).
Regards
Antoine
As Antoine says, you can track your likes with Google Analytics. I don't know about insights though.
Here's more info on how to track likes with GA:
http://www.socialmediaexaminer.com/how-to-track-tweets-facebook-likes-and-more-with-google-analytics/
Use FB.Event.subscribe:
FB.Event.subscribe('edge.create',
function(response) {
alert('You liked the URL: ' + response);
}
);
Why use iframe if it is limiting you from doing what you need to do? Use XFBML or HTML5 versions and use the event handler to do an AJAX call to your server. Kinda like, Dr it hurts when I hit my thumb with a hammer, and the Dr says don't hit your thumb.