-
AuthorPosts
-
Urszula Dziki Friend
Urszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
December 2, 2010 at 12:05 pm #156982My SEF is enabled and since then my counter on front page for twitter and facebook now showing all the time 0. And no matter what I do and how many times I click still 0. Before I enabled SEF it was showing about 9 when I was testing.
No idea what I did wrong. But it looks like they only work when SEF is disabled. anyone has the same problem?
Urszula Dziki FriendUrszula Dziki
- Join date:
- September 2014
- Posts:
- 221
- Downloads:
- 0
- Uploads:
- 44
- Thanks:
- 34
- Thanked:
- 20 times in 1 posts
December 4, 2010 at 1:05 am #365249I found out. It was legacy mode. It does not work in legacy mode
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 5, 2010 at 4:42 pm #365320Thanks for your information, i will inform our developers to check this
ThanksFebruary 11, 2011 at 1:17 pm #376204I am having trouble with the counters as well. I had one person click the Facebook share button as a test on my new site and the post is showing on her Facebook profile but my share button still says zero.
I do not have SEF turned on in the global settings and I am not running in legacy mode. Please help me correct this feature.
My site link is http://www.kosovichmedia.com/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=2&Itemid=57
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 14, 2011 at 3:11 am #376537dear chrisk, its not an issue of ja social, but facebook. the count might be missed if your site is running on localhost, another reason is the caching time of FB, the count number wont update imediately.
February 14, 2011 at 4:55 pm #376666Dear hungnd,
Thank you for the reply. I am not exactly sure what you mean when you say “site is running on localhost” because I am using a specific hostname for the site.
I had someone click on the post to share it on Facebook on February 10. The article has been on my site since February 8. There is still no reference to the number of shares on Facebook which should be at least “1” and today on February 14 it still is reading zero.
So, if my site is not running on localhost, what are some of the caching times you have seen for facebook? Is caching time beyond 4 days?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 15, 2011 at 8:52 am #376757I just meant FB only counts for real domain. I must explain this, the count button on your site is fetched from facebook api, we just use that api and do not interfere anything, either the couting or displaying counting result process. That is to say, Fb does all the process, this is an isolated and known issue of Fb. I myself experienced this serveral times.
There may be other reasons, I still dont know. Lets try click share a few more times to see if it works.February 15, 2011 at 3:08 pm #376812Thank you for the further explanation. This site is hosted with a company here in the U.S. and the database has its own distinct hostname connection.
I have installed the QuickStart package from JA for the JA Social Template. I have made sure the plugin for the Facebook Share is activated and it is set to enable the Facebook Share option on the K2 articles. The articles post to the “blog” section of the site with no troubles and the Facebook Share option shows up in the article with no troubles.
I have now “shared” another link on Facebook and I will report back results to let you know if there is any change yet. As of this writing, the count still reads zero just minutes after sharing the content item. The content item is appearing on my Facebook wall so I am sure the link is shared properly and when I click the link in the Facebook wall, I am led back to the specific article.
So, in some respects it is providing the ability to “share” the content item with facebook. The only problem seems to be the fact that it doesn’t show the count of the number of times it has been shared.
There is another thread that you have replied to that seems to have elevated this case for a developer to look into the issue. You mention you sometimes have challenges with Facebook because it is not locally available. Please let me know if I can provide screenshots or user testing for the modifications you make to try to make it work. I will gladly install it and report back to you my experiences.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 16, 2011 at 8:24 am #376931Okay, I’ve done some experiments I found out that might be due to SEF.
FB has an API to let us query some info such as share, like count. For example we want to see the info of joomlart:
http://api.facebook.com/method/fql.query?query=select%20%20like_count,%20total_count,%20share_count,%20click_count%20from%20link_stat%20where%20url=%22http://www.joomlart.com%22
the result is generated in xml format
<?xml version="1.0" encoding="UTF-8"?>
<fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true">
<link_stat>
<like_count>10</like_count>
<total_count>126</total_count>
<share_count>105</share_count>
<click_count>195</click_count>
</link_stat>
</fql_query_response>
now lets try with your link:
http://www.kosovichmedia.com/index.php?option=com_content&view=article&id=60:disc-makers-partner-program-recognizes-kosovich-media-group&catid=1:latest-news&Itemid=50
replace string http://www.joomlart.com by it, we have:
<?xml version="1.0" encoding="UTF-8"?>
<error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
<error_code>601</error_code>
<error_msg>Parser error: unexpected '"' at position 83.</error_msg>
<request_args list="true">
<arg>
<key>method</key>
<value>fql.query</value>
</arg>
<arg>
<key>query</key>
<value>select like_count, total_count, share_count, click_count from link_stat where url="http://www.kosovichmedia.com/index.php?option=com_content</value>
</arg>
<arg>
<key>view</key>
<value>article</value>
</arg>
<arg>
<key>id</key>
<value>60:disc-makers-partner-program-recognizes-kosovich-media-group</value>
</arg>
<arg>
<key>catid</key>
<value>1:latest-news</value>
</arg>
<arg>
<key>Itemid</key>
<value>50"</value>
</arg>
</request_args>
</error_response>
I think that is the reason why, your url contains some characters that break the query and prevent fb to fetch the info.
I did not dig into face widget code to find out is its widget use exactly that api to get the count number, but I think they work in the same way.Now, lets try enable SEF on our site to see what happens.
February 16, 2011 at 10:28 am #376958that does not do the trick in my case:
here’s one of our articles fill in your URL that you have provided:
http://api.facebook.com/method/fql.query?query=select%20%20like_count,%20total_count,%20share_count,%20click_count%20from%20link_stat%20where%20url=%22http://www.unihockey-deitingen.ch/component/content/article/39-herrenameisterschaft/107-herren-a-brillieren-vor-heimpublikum%22it looks good.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 2, 2011 at 11:03 am #379287if that test returns result, your fb button should display right count number:
http://www.unihockey-deitingen.ch/component/content/article/39-herrenameisterschaft/107-herren-a-brillieren-vor-heimpublikum
and actually it does.March 2, 2011 at 5:08 pm #379319well, I really cannot understand this.
It does increase with my article mentioned above.
however, if I take the first one displayed on my frontpage, the counter won’t work.
what is the logic behind this???Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 3, 2011 at 2:32 am #379352<blockquote>f I take the first one displayed on my frontpage, the counter won’t work.</blockquote>
since It has to fetch info from facebook, it may not be so stable. I dont know why this happen, but its the issue of facebook. Look at my attachment, its showing fine.March 3, 2011 at 11:45 am #379481Ok, it seems that something is definitely not stable.
When I tried to post this article to FB the counter did not increase. Now it shows 4. When I try to share this article again, it remains on 4. All other articles will also not increase its counter either.
@hungnd
So, on my testing environment http://www.unihockey-deitingen.ch/_content I disabled “JA Facebook Share” and enabled the plugin “Zn Facebook share”.
Here you will see that the button looks weird if the count is “0”, but it looks fine from 1 count on.
The count increases immediately after clicking on the fb share button. However, if you decide that the content should not be shared for any reason, the share will not be counted. check that by refreshing the page.To sum up, “Zn Facebook Share” plugin works fine beside the messy look of zero counts.
Please have a look.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 4, 2011 at 7:06 am #379582when you click at share button and share it on facebook, the number will increase imediately, but it is just a trick, right after that if you refresh the page the number goes back, because as I said before, fb couter has a cache time. Whatever module you use, they have the same method: implement the share button of fb, so I think they generally work in the same way.
AuthorPostsThis topic contains 17 replies, has 5 voices, and was last updated by Ninja Lead 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum