WordPress.org

Plugin Directory

Social FBlog

Inserts a floating box next to your blog posts to share your content on Twitter, Facebook and Google Plus and others.

What is the plugin license?

  • This plugin is released under a GPL license.

Why the plugin is not working?

  • Probably due to incompatibility of jQuery. Check to see if this plugin modifying the jQuery version of your WordPress.

The Facebook sharing this wrong images!

  • The Facebook randomly chooses images in your layout. To fix this I suggest you use the WP Open Graph plugin.

Can I add new buttons?

Yep!

Use the filters for this:

  • socialfblog_scripts - Add new scripts.
  • socialfblog_styles - Add new styles.
  • socialfblog_buttons - Add new buttons in HTML.

Example of use with the Buffer button:

function socialfblog_add_buffer_html( $html ) {

    // Gets post data.
    global $post;

    // Adds the new button.
    $html .= sprintf( '<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="%s" data-url="%s" data-count="vertical" data-via="ferramentasblog">Buffer</a>', $post->post_title, get_permalink( $post->ID ) );

    return $html;

}

add_filter( 'socialfblog_buttons', 'socialfblog_add_buffer_html' );

function socialfblog_add_buffer_scripts( $scripts ) {

    // Adds the new scripts.
    $scripts .= '<script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>';

    return $scripts;
}

add_filter( 'socialfblog_scripts', 'socialfblog_add_buffer_scripts' );

The code should be added to the functions.php of your theme.

FAQ em Português:

Qual é a licença do plugin?

  • Este plugin esta licenciado como GPL.

Instalei o plugin, mas ele não esta funcionando, o que pode ser?

  • Provavelmente por incompatibilidade do jQuery. Verifique se algum plugin esta modificando a versão do jQuery do seu WordPress.

O Facebook esta compartilhando imagens erradas!

  • O Facebook escolhe aleatoriamente imagens em seu layout. Para corrigir isso sugiro você usar o plugin WP Open Graph.

Posso adicionar novos botões?

Sim!

Para isso utilize os filtros:

  • socialfblog_scripts - Serve para adicionar novos scripts.
  • socialfblog_styles - Serve para adicionar novos estilos.
  • socialfblog_buttons - Serve para adicionar o HTML dos novos botões.

Exemplo de uso com o botão do Buffer:

function socialfblog_add_buffer_html( $html ) {

    // Pega as informações do post.
    global $post;

    // Adiciona o novo botão.
    $html .= sprintf( '<a href="http://bufferapp.com/add" class="buffer-add-button" data-text="%s" data-url="%s" data-count="vertical" data-via="ferramentasblog">Buffer</a>', $post->post_title, get_permalink( $post->ID ) );

    return $html;

}

add_filter( 'socialfblog_buttons', 'socialfblog_add_buffer_html' );

function socialfblog_add_buffer_scripts( $scripts ) {

    // Adiciona o novo javascript.
    $scripts .= '<script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script>';

    return $scripts;
}

add_filter( 'socialfblog_scripts', 'socialfblog_add_buffer_scripts' );

O código deve ser adicionado no functions.php do seu tema.

Requires: 3.8 or higher
Compatible up to: 3.9.5
Last Updated: 2014-4-17
Active Installs: 2,000+

Ratings

4.8 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
50,2,1
50,2,1
100,1,1
100,1,1
50,2,1
100,1,1
100,1,1