services:

    #
    # Twig renderer
    #
    elcodi_plugin.facebook.javascript_renderer:
        class: Elcodi\Plugin\FacebookBundle\Templating\JavascriptRenderer
        calls:
            - [setTemplating, [@twig]]
            - [setPlugin, [@=elcodi_plugin("Elcodi\\Plugin\\FacebookBundle")]]
        tags:
            - { name: kernel.event_listener, event: store.body_bottom, method: renderJavascript }
            - { name: kernel.event_listener, event: admin.footer_script, method: renderJavascript }

    elcodi_plugin.facebook.share_post_renderer:
        class: Elcodi\Plugin\FacebookBundle\Templating\SharePostRenderer
        arguments:
            - @router
            - @translator
        calls:
            - [setTemplating, [@twig]]
            - [setPlugin, [@=elcodi_plugin("Elcodi\\Plugin\\FacebookBundle")]]
        tags:
            - { name: kernel.event_listener, event: store.product_pin_top, method: renderShareProduct }
            - { name: kernel.event_listener, event: admin.product_top, method: renderShareProduct }
            - { name: kernel.event_listener, event: store.order_thanks, method: renderShareOrder }

    elcodi_plugin.facebook.follow_renderer:
        class: Elcodi\Plugin\FacebookBundle\Templating\FollowRenderer
        calls:
            - [setTemplating, [@twig]]
            - [setPlugin, [@=elcodi_plugin("Elcodi\\Plugin\\FacebookBundle")]]
        tags:
            - { name: kernel.event_listener, event: store.footer_social, method: renderFollowButton }

services:

    #
    # Twig renderer
    #
    elcodi_plugin.facebook.javascript_renderer:
        class: Elcodi\Plugin\FacebookBundle\Templating\JavascriptRenderer
        calls:
            - [setTemplating, [@twig]]
            - [setPlugin, [@=elcodi_plugin("Elcodi\\Plugin\\FacebookBundle")]]
        tags:
            - { name: kernel.event_listener, event: store.body_bottom, method: renderJavascript }
            - { name: kernel.event_listener, event: admin.footer_script, method: renderJavascript }

    elcodi_plugin.facebook.share_post_renderer:
        class: Elcodi\Plugin\FacebookBundle\Templating\SharePostRenderer
        arguments:
            - @router
            - @translator
        calls:
            - [setTemplating, [@twig]]
            - [setPlugin, [@=elcodi_plugin("Elcodi\\Plugin\\FacebookBundle")]]
        tags:
            - { name: kernel.event_listener, event: store.product_pin_top, method: renderShareProduct }
            - { name: kernel.event_listener, event: store.order_thanks, method: renderShareOrder }

    elcodi_plugin.facebook.follow_renderer:
        class: Elcodi\Plugin\FacebookBundle\Templating\FollowRenderer
        calls:
            - [setTemplating, [@twig]]
            - [setPlugin, [@=elcodi_plugin("Elcodi\\Plugin\\FacebookBundle")]]
        tags:
            - { name: kernel.event_listener, event: store.footer_social, method: renderFollowButton }

Disable social buttons on admin page
Disable social buttons on admin page
