Support » Plugin: Simple Facebook Connect » [Plugin: Simple Facebook Connect] Description is adding Tweet Tweet to the text

Viewing 12 replies - 1 through 12 (of 12 total)
  • I am also getting this but this was caused due to sharebar twitter button. Just go to sharebar if you are using it, and edit twitter button and remove text Twitter from it.

    OH THANK YOU! That’s what it was!

    That’s not a fix, that’s a workaround. Having the word “Tweet” in the tweet button is very important for accessibility.

    This problem is actually amplified if you have any other social buttons, like +1, Stumbleupon, and even Facebook buttons.

    The real problem is that SFC is pulling the og:description tag from the _content_ of the page, not the written excerpt, as its documentation makes it seem.

    nicoleb, can you mark this unresolved? zvhipp’s suggestion is nice, but it doesn’t fix the real problem.

    I’d rather not start a duplicate post on this issue.

    Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    No, SFC 1.2 does pull from the manually created excerpt, if one is available and non-empty on the post.

    See the sfc_base_make_excerpt() function in sfc-base.php.

    Thanks for popping in here, Otto. If SFC is really pulling from the excerpt, then how is it capturing stuff like ShareBar from the post? Sharebar doesn’t appear in the excerpt or even on the front page where the excerpts would be listed. Sharebar is only within the post.

    Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    Try the fix I just put in the development version, see if that improves the handling there.

    Thanks for that. It fixed the problem with ShareBar, but it’s still grabbing text that shouldn’t be there. This time, it’s grabbing the PowerPress podcasting plugin text.

    <meta property='og:description' content='Podcast: Play in new window | Download ACTUAL EXCERPT HERE.' />

    Perhaps SFC is pulling from the_excerpt too late in the filter chain?

    I’ve also noted that it will pull extra text from plugins that add content to the end of a post if my description is not long enough to take up the full amount of characters. Known plugins it does this with include WP-About The Author and Call to Action

    Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    Edit: Never mind, I was confused about what you were saying there.

    Yes, if a plugin puts stuff into the content using the_content or the_excerpt, then that will be reflected there too. This is intended, that stuff is part of the content.

    If you don’t want that sort of thing, then core development is still needed to have filters outside of the content. There’s a trac ticket for this, but the fact is that if a plugin is modifying the content, then SFC/STC/SGC should be picking that up too. That’s intended.

    Coming back to this, perhaps the ultimate solution would be to grab from the meta description. Doesn’t WordPress automatically populate that from the excerpt?

    Pulling from the meta description tag would also be great because it would allow us to write descriptions in ways that appeal outside of the context of our site. This is normal for SEO, but would be fantastic for social sharing.

    I know that it isn’t good practice to modify plugins because your changes are at risk of being removed if the plugin is updated. Having said that, I changed the ‘sharebar_auto’ function in sharebar.php so that the the excerpt does not get modified.

    function sharebar_auto($content){
    	// Don't do anything for the excerpt
    	if ( in_array ( 'get_the_excerpt', $GLOBALS['wp_current_filter'] ) )
    		return $content;
    	if((get_option('sharebar_auto_posts') && is_single()) || (get_option('sharebar_auto_pages') && is_page())){ $str = sharebar(false); $str .= sharebar_horizontal(false); }
    	$newcontent = $str.$content;
    	return $newcontent;
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Description is adding Tweet Tweet to the text’ is closed to new replies.