The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple Facebook Connect
[resolved] Text length on Facebook (3 posts)

  1. mdatawt
    Posted 4 years ago #


    At first thanks for this well working plugin.

    I have a question about the part of the post that lands on Facebook : is there a way to fix its length somewhere ?

    I have noticed that the text displayed on Facebook has a very often changing length, and since today it's nearly my whole post which appears on Facebook.

    My posts don't have an excerpt themselves on my site.

    What would you suggest to do to put just a short text ? (approx 200 caracters for example)

    Thanks a lot in advance

    Best regards


  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 4 years ago #

    By default (and by popular demand), SFC's publisher tries to make the maximum "excerpt" that FB will take. This is 1000 characters. It does some smart trimming to not cut words in half and such.

    To change this, I made a filter you can use in your theme's functions.php file (or somewhere else if appropriate). You can use it thusly:

    function my_excerpt_length($len) {
      return 200;

    Alternatively, if you fill in a manual excerpt, that gets used instead (and length restrictions still apply to that as well).

  3. mdatawt
    Posted 4 years ago #

    Thank you very much for your quick and detailed answer. I tried the manual excerpt and it works fine.

    Best regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic