Forums

Simple Facebook Connect
Description is adding Tweet Tweet to the text (12 posts)

  1. nicoleb
    Member
    Posted 4 months ago #

    I recently upgraded the Simple Facebook Connect. Now, whenever I publish a post, the description is prepended with the words Tweet Tweet. This occurs even if I don't use the auto publish but take the URL and post it directly anywhere.

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. zvhipp
    Member
    Posted 4 months ago #

    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.

  3. nicoleb
    Member
    Posted 4 months ago #

    OH THANK YOU! That's what it was!

  4. DJosephDesign
    Member
    Posted 4 months ago #

    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.

  5. DJosephDesign
    Member
    Posted 4 months ago #

    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.

  6. Otto
    Tech Ninja
    Posted 4 months ago #

    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.

  7. DJosephDesign
    Member
    Posted 4 months ago #

    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.

  8. Otto
    Tech Ninja
    Posted 4 months ago #

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

  9. DJosephDesign
    Member
    Posted 4 months ago #

    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?

  10. nicoleb
    Member
    Posted 4 months ago #

    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

  11. Otto
    Tech Ninja
    Posted 3 months ago #

    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.

  12. DJosephDesign
    Member
    Posted 1 month ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic