Facebook Like Button Functionality

munesh1997 Jul 23, 2012 09:57AM EDT

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fc0923b5eadd1ae"></script>
<!-- AddThis Button END -->



Added the above code in the jsp. While clicking on fb like button it opens a pop up for facebook login. Enter user name and passowrd for facebook and click on enter login button. This makes user to login in facebook account. But count remains same. But after completion of the above step or user already signed in the facebook account if user again clicks on fb like button count increases and it also shows in users facebook account. Does any one explain why its happening and wht is the sloution.

5 Community Answers

Paul Jul 27, 2012 01:50PM EDT

Unfortunately the Facebook Like button doesn't work for apps, only pages.

View in conversation


Up 0 Rated Down
Paul (AddThis Happiness Specialist) Jul 24, 2012 12:11PM EDT
This sounds like a problem on Facebook's end. Do you have an example URL?
Up 0 Rated Down
munesh1997 Jul 25, 2012 02:10PM EDT
Hi Paul,

We are doing testing on local server (http://localhost:8080/store/). we have not mention special URL.Could ypu please tell me what Example URL you are looking for. I tried '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:addthis="http://www.addthis.com/help/api-spec">' also. But it is not working.

Please provide the steps for facebook like integration.
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Jul 25, 2012 02:11PM EDT
The problem is that Facebook can't access your site. Without that, they can't scrape your page and get the appropriate Open Graph tags. In order to make sure your site is working properly you need to put it on a publicly-accessible server. Then you can use Facebook's URL debugger to troubleshoot your sharing to Facebook. It's available here: https://developers.facebook.com/tools/debg
Up 0 Rated Down
munesh1997 Jul 27, 2012 01:50PM EDT
I am still facing same problem even though following changes has been done. Could you please have a look and suggest what we are missing .........

Step 1: We created App in facebook as you can see the details information
App ID/API Key :410452935666278
Site URL : http://172.21.55.14:8080/store/
Canvas Page : https://apps.facebook.com/410452935666278/
Canvas URL : http://developers.facebook.com/apps/410452935666278/summary?save=1

Step 2: Modified tag as mentioned below
<a class="addthis_button_facebook_like" fb:like:href="https://developers.facebook.com/apps#!/apps/410452935666278" fb:like:layout="button_count"></a>
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Best Answer Jul 27, 2012 01:50PM EDT
Unfortunately the Facebook Like button doesn't work for apps, only pages.

This question is closed to new answers.

Still need help?


General Topics

 

Developers