Support » Plugin: Simple Facebook Connect » [Plugin: Simple Facebook Connect] Text length on Facebook

  • Resolved mdatawt



    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42) Admin

    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).

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

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Text length on Facebook’ is closed to new replies.