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:
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"
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With