Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Posts made using the Javascript SDK feed dialog are small and truncated; don't match preview

I'm trying to update my stream.publish code to use the feed dialog in the javascript SDK, but the resulting facebook posts are small and ugly. More annoying is that the posts on facebook don't match the preview on my site.

Here's my code:

function facebook_publish_feed_story() {
  var publish = {
      method: 'feed',
      link: 'http://www.wikipedia.org/',
      picture: 'http://upload.wikimedia.org/wikipedia/commons/6/63/Wikipedia-logo.png',
      name: 'Name of the link',
      caption: "A caption that's kind of long like this I'm going to write some more words"
      description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae augue sed urna fermentum vulputate. Nunc porttitor vestibulum vestibulum. Aliquam eget feugiat lectus. Duis ullamcorper sollicitudin nisi sit amet congue.'
    };

  FB.ui(publish, function(response) {
    //do something with response
  });
}

Here's the javascript pop-up with a preview of the post. This post looks totally fine and great to me:

x

And here's what it looks like once it's posted to facebook. Note that it's in a table with a dark background, and that the description is totally truncated, without even a "..." or "read more"

x

If this is "just the way it is", then that's fine and I'll give up, but if there's any way to fix this code, or use a different SDK call to make a more attractive and informative post, wouldn't that just be better for everybody?

like image 962
nvioli Avatar asked Dec 12 '12 22:12

nvioli


1 Answers

Same here, the post becomes truncated. I noticed that this issue has started recently. My 'solution' was to put the text in the caption value instead of description. It seems that the caption can contain more characters than the description.

like image 58
pulsar Avatar answered Nov 16 '22 07:11

pulsar