Pay With A Like working intermittently

Sometimes it works, sometimes it doesn’t:

My PWAL plugin seems to work consistently with linked in -but not twitter or facebook.

I was alerted to this via the forums -another wpmu member reached out to tell me the buttons don’ t work for twitter:

https://wpmudev.com/forums/topic/pay-with-a-like-feature-request#post-439714

and I just tested facebook on one of my pages, – I clicked like and the facebook button disappeared, nothing else happened – my like was not posted to facebook, the content was not revealed – the only change was that the facebook button disappeared.

  • kathrynjones
    • The Incredible Code Injector

    hi!

    thanks for the response –

    When I deselect the “load scripts” for facebook and twitter the buttons don’t appear at all.

    I want to make sure I really understand this because the pay with a like is crucial to our current strategy and it is more important to me that facebook and twitter function properly in the PWAL plugin then anywhere else on my site, so my site also access the facebook and twitter api’s via

    wordpress Sharing (Publisize)

    Facebook “Like” box widget

    subscription widget

    You are saying that those plugins could be interfering, yes? Is my best bet just to deactivate those plugins?

    thanks!

    Kathry

  • Paul
    • The Green Incsub

    @kathrynjones,

    You are saying that those plugins could be interfering, yes? Is my best bet just to deactivate those plugins?

    Correct. On the PWAL Settings page you see the two sets of checkboxes. The first set controls what buttons you want to use. That second set of buttons controls the loading of the third party JavaScript library.

    For the PWAL plugin will load the Facebook JavaScript

    http://connect.facebook.net/all.js.

    If you have another plugin like our Ultimate Facebook plugin also loading the all.js JavaScript then this causes some serious conflict. So that is why PWAL has the option for you NOT to load the respective library.

    The other thing which might effect your like processing is otherJavaScript. I’ve viewed your site. If there are any other JavaScript errors on the page it will prevent the click action from processing. Once the like action is accepted and complete the PWAL process will reload the page showing the full content.

  • Paul
    • The Green Incsub

    @kathrynjones,

    I clicked like and the facebook button disappeared, nothing else happened – my like was not posted to facebook, the content was not revealed

    Experienced the same on the Facebook. How this should happen is the user is authenticated in not already. Then after a brief time (2-3 seconds) the page will reload. Upon the reload the full content is revealed.

    I just tried on the Twitter button and works as designed. Even posted to my Twitter stream

    [attachments are only viewable by logged-in members]

  • kathrynjones
    • The Incredible Code Injector

    Thanks –

    I got rid of most of the other plugins that might be loading facebook javascript and facebook on PWAL seems to be working… but

    Just to be clear – I did in fact start this process by unchecking the "Load Javascript" box for facebook in the PWAL settings, while keeping the "Buttons To Use" facebook box checked – the result was that PWAL did not display the facebook button at all – see the enclosed screenshot.

    I am not detecting any javascript errors on my site, did you?

    And I am going to add text to all 25 pages that helps the user to understand that it takes the page sometime to load –

    [attachments are only viewable by logged-in members]

  • Paul
    • The Green Incsub

    @grace,

    Thanks. I just went to her site and chose a video. When I click the FB like I’m getting a JavaScript error (see image) This errors was due to a change in the Facebook API last month. This was know and we fixed the issue in our PWAL 1.1.5 version which was released today.

    @kathrynjones

    Please upgrade to the newest version of PWAL 1.1.5

    Also what is handled is the popup comment box shown when you click the like. In previous versions we just tried to hide the popup and reload the page. Now we can show the popup and wait for the user to take action before reloading the page.

  • Paul
    • The Green Incsub

    @kathrynjones ,

    Hope you enjoyed the vacation. One point on the PWAL 1.1.5 you can now show the FB comment popup. In the settings look for the new checkbox in the Accessibility section. See image.

    When the checkbox is checked it will show the optional FB comment popup and wait before reloading the page. Thought might need additional styling.