• Resolved Vinayy

    (@vinayy)


    I am using the latest version of WP and DNT. I tried adding a new Ticker today with Facebook Embed Post but it displayed only the embeded code.

    I have been using DNT successfully earlier in another Ticker on same website. When I tried to add this new Tick on an old working Ticker, even that one broke and has started displaying just the code.

    Theme: Weaver II
    Google Adsense

    I don’t think it is the theme because a previously created Ticker was working properly until I updated it.

    https://wordpress.org/plugins/ditty-news-ticker/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    Please run through this FAQ https://metaphorcreations.ticksy.com/article/1483/ to make sure there isn’t a conflict with other plugins or your theme. Let me know what you find out afterwards.

    Thanks!

    Thread Starter Vinayy

    (@vinayy)

    As per your suggestion, I deactivated all the plugins and changed the theme to twentytwelve and then reactivated Ditty News Ticker (DNT) but the issue was still there.

    I repeat, old DNT’s are still working properly. New one isn’t. I had edited an old one (mentioned earlier, just to check) and it is still not displaying FB embeded post. This old one was working properly until I edited it.

    Link: http://lovecommandos.org/shop-and-help-us/

    The above link is displaying a part of the FB embeded code. This is the issue.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    Could you explain what the Facebook Embed Post is? Are you adding a shortcode, or are you adding javascript directly to the ticker? If you’re adding javascript to the ticker, the <script> tags are probably being stripped out due to updated data sanitization. The update to the sanitization was required by the WordPress plugin repository. They had disabled new downloads of the plugin until I fixed the sanitization.

    If you can somehow find another plugin that makes use of a shortcode in order to add the Facebook stuff, that should work as the script isn’t then being added directly to the ticker and saved to the database.

    Thread Starter Vinayy

    (@vinayy)

    “Embed post” generated from any Facebook post was working properly earlier in your Ticker.

    I have even tried embedding post as per instructions available at https://developers.facebook.com/docs/plugins/embedded-posts/ but your Ticker isn’t working anymore.

    The FB code is working properly when directly inserted into the page.
    Working directly: http://lovecommandos.org/shop-and-help-us/

    Please find & provide a solution.

    Plugin Author metaphorcreations

    (@metaphorcreations)

    I have released an update that adjusts the data sanitization of the ticker content. You should be able to embed Facebook Posts again, but you do still need to embed the Facebook Javascript SDK directly into the Head/Body of your site first:

    <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.3&appId=235957546603954";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    And then you can add your embed code in the tickers:

    <div class="fb-post" data-href="https://www.facebook.com/FacebookDevelopers/posts/10151471074398553" data-width="500"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/FacebookDevelopers/posts/10151471074398553"><p>Be the first to know when we release a new video by subscribing to our official Facebook Developers YouTube channel! http://www.youtube.com/facebookdevelopers</p>Posted by <a href="https://www.facebook.com/FacebookDevelopers">Facebook Developers</a> on <a href="https://www.facebook.com/FacebookDevelopers/posts/10151471074398553">Wednesday, May 29, 2013</a></blockquote></div></div>

    Just use the Code generator here https://developers.facebook.com/docs/plugins/embedded-posts

    Thread Starter Vinayy

    (@vinayy)

    Thanks, it works now 👍

    As I had mentioned in my previous comment, I now have to generate the code at https://developers.facebook.com/docs/plugins/embedded-posts and use the part 2 of the plugin code for every post that I need to embed.

    I consider this issue as RESOLVED. Thanks again.

    Thread Starter Vinayy

    (@vinayy)

    RESOLVED

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘New Tickers stopped displaying Facebook Embed Post’ is closed to new replies.