• Resolved dpkonofa

    (@dpkonofa)


    Great little app so far, but I’m having a few issues that I can’t seem to resolve. Before I go and rate this, I want to make sure I’m not doing anything wrong:

    1. As soon as I enable Super Socializer, but despite the fact that I’ve disabled everything except the counter, it still seems to load the FB sdk.js file and then throws a warning about an invalid App ID. I don’t have any place to enter the app ID and I don’t think it’s even necessary if I’m just using the counter. This isn’t a deal breaker, but it’s a little sloppy to still be loading something that’s not being used… How do I fix this?

    2. The Google+ “+1” button always changes to an exclamation point /!\ whenever I try to use it. There’s no additional info, though, so I can’t tell what’s the issue with it. Each additional click of the exclamation point brings up the Google+ error help page at https://support.google.com/plus/answer/1047397?p=plusone_button_error&rd=2. No matter what I do, I can’t get it to actually +1. Again, I’m only using the social counter features and nothing else.

    https://wordpress.org/plugins/super-socializer/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Rajat Varlani

    (@the_champ)

    Hi there,

    1. sdk.js file is required for Facebook Login, Feed and Facebook Commenting to work. Make sure, you have not enabled any of these, if you don’t want sdk.js to be loaded on the webpage.

    2. I need to look into the G+1 issue at your website. Would you provide link to your website?

    Thread Starter dpkonofa

    (@dpkonofa)

    1. I double checked and I have everything else turned off except for the Social Counter feature. It’s still loading sdk.js. I’m certain that it’s your plugin too because disabling your plugin stops it from loading. Thoughts?

    2. I can’t provide the link because the site is behind a company firewall, but I gave up on the +1 and just used the share link instead. If we still have issues and +1 is a necessity, I’ll respond back here at that point and leave the link so you can look into it. Thanks!

    I appreciate the quick response.

    Plugin Author Rajat Varlani

    (@the_champ)

    There are two sdk.js files, one is in the plugin folder and another loaded from Facebook. Seems, you are talking about the one loaded from the Facebook. It gets loaded when you use FB like/recommend in Social Counters. It will load sdk.js whether or not you specify app id so no need to worry about this.

    Thread Starter dpkonofa

    (@dpkonofa)

    Ok. Might I suggest then that you write some logic to check if that’s necessary and suppress that? It looks bad when my site is throwing warnings. 😛 Thanks for the clean plugin. Much better than most of the others out there.

    Plugin Author Rajat Varlani

    (@the_champ)

    Only solution for this is making FB App ID mandatory for FB like and recommend buttons 🙂
    I guess no one will like that. What do you say?
    Thanks for the appreciation.

    Thread Starter dpkonofa

    (@dpkonofa)

    Facebook doesn’t require it, so maybe a slight revision of the way that’s handled? https://developers.facebook.com/docs/plugins/like-button

    Plugin Author Rajat Varlani

    (@the_champ)

    It does require it. When you click “get code” button, you can see the option to select FB app which is to use the App ID of that app in the code.

    Thread Starter dpkonofa

    (@dpkonofa)

    Hmm… When I hit “Get Code”, it just shows me the code. I don’t know if it’s because I don’t have any Apps created, but there’s no option to select an App ID or anything…

    ———-
    Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
    <div id=”fb-root”></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = “//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));</script>
    Place the code for your plugin wherever you want the plugin to appear on your page.
    <div class=”fb-like” data-href=”https://developers.facebook.com/docs/plugins/&#8221; data-layout=”button_count” data-action=”like” data-show-faces=”false” data-share=”false”></div>

    Plugin Author Rajat Varlani

    (@the_champ)

    I mean, you can use the code without App ID but then it will show the warning.

    Thread Starter dpkonofa

    (@dpkonofa)

    Oh. Guess I’ll have to live with it then. 😛

    Thanks again for the great plugin!

    Plugin Author Rajat Varlani

    (@the_champ)

    Your welcome 🙂

    Thread Starter dpkonofa

    (@dpkonofa)

    Marking as resolved since it’s optional and a warning rather than an error.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Invalid App ID and /!\ on Social Counter’ is closed to new replies.