test
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • Urszula Dziki Friend
    #156982

    My 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?


    1. counter
    Urszula Dziki Friend
    #365249

    I found out. It was legacy mode. It does not work in legacy mode

    Saguaros Moderator
    #365320

    Thanks for your information, i will inform our developers to check this
    Thanks

    chriskosovich Friend
    #376204

    I 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 Moderator
    #376537

    dear 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.

    chriskosovich Friend
    #376666

    Dear 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 Moderator
    #376757

    I 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.

    chriskosovich Friend
    #376812

    Thank 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 Moderator
    #376931

    Okay, 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.

    kofi Friend
    Ninja Lead Moderator
    #379287

    if 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.

    kofi Friend
    #379319

    well, 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 Moderator
    #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.

    kofi Friend
    #379481

    Ok, 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 Moderator
    #379582

    when 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.

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 5 voices, and was last updated by  Ninja Lead 13 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum