Support » Plugin: Simple Facebook Connect » [Plugin: Simple Facebook Connect] How to limit the number of characters in the post snippet

Viewing 2 replies - 1 through 2 (of 2 total)
  • oops, clearly that should have said fb not fp :p

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    The sfc_excerpt_length filter will let you control the number of characters it will read in order to produce the published text. It defaults to FB’s maximum, which is 1000 characters.

    add_filter('sfc_excerpt_length','my_length');
    function my_length($num) {
      return 50;
    }

    Put that in your theme’s functions.php file or in a plugin or something.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simple Facebook Connect] How to limit the number of characters in the post snippet’ is closed to new replies.