2011/11/15

Error: unterminated string literal
description
FB.ui(
  {
    method: 'feed',
    name: 'xxx',
    link: 'xxx',
    picture: 'xxx',
    caption: 'xxx',
    description: 'xxx'
  },
  function(response) {}
);

description 不能有換行字元 \r 或 \n 用 preg_match('/[\r\n]+/', '', description) 置換掉就可以了