Using FB.ui({ method: 'stream.publish' ...}) It fails to accept my attachment media complaining it should be an array (while it is).
The old API (FB.Connect.streamPublish) accepted the format just fine, and all the other options seem to be valid. I find the Facebook documentation to be a mess, somebody got this working with the new version?
The whole post is created as follows:
var attachment = {media: new Array({type:'image',
src:'http://xxxxxxx' + baseurl + 'img/facebook-share_big.png',
href:'http://xxxxxxx' + baseurl}),
name: 'xxxxxxx',
description: message,
href: 'http://xxxxxxx' + baseurl};
var action = [{text: 'xxxxxxx', href: 'http://xxxxxxx' + baseurl}];
FB.ui({
method: 'stream.publish',
message: 'xxxxxxx',
attachment: attachment,
action_links: action,
user_message_prompt: 'xxxxxxx'
});