It turned out this error when trying to publish in the feed. I use javascript to publish. ByteArray data comes from .swf
API Error Code: 100
API Error Description: Invalid parameter
Error message: Image URL is not formatted properly
Here is my AS3:
var bdToSave:BitmapData = new BitmapData(s.width, s.height);
bdToSave.draw(s, null, null, null, null, true);
var encoder:JPGEncoder = new JPGEncoder();
var byteArray:ByteArray = encoder.encode(bdToSave);
if (ExternalInterface.available) ExternalInterface.call("publishStream", byteArray);
Here is my JS:
function publishStream(person)
{
FB.ui({
method : 'feed',
name: 'I just painted my face!',
caption: 'From the show Warren, using the True Colors: Face Painting App I painted my face to match my favourite team!',
link: 'https://www.facebook.com/fanunitednet',
description: '',
picture: person
});
}
I send him a byte array of data. Can I get it to work with this or do I need a url? My problem is that I take a picture by sending data bytes to the form and then try to use this picture. There is no direct link.
Thoughts?
source
share