facebook graph api - RestFB - Picture URL is not properly formatted -


i'm trying publish post on facebook page using restfb.

my code follows:

facebooktype publishresponse =  facebookclient.publish(pageid + "/feed", facebooktype.class,                 parameter.with("message", message),                 parameter.with("picture", picture),                  parameter.with("link", link),                  parameter.with("description", description)); 

and parameters have following values:

message: test+test+test picture: https%3a%2f%2fcom-smallteaser-local-photo.s3.amazonaws.com%2fskydivemag%25232fdefcfa-c7b2-4c0d-8504-9942ccd9a4b0%2523648%25230%25232592%25232592%2523292%2523292 link: http%3a%2f%2flocalhost%3a9000%2farticle%2f20130503-test-test-test description: this+is+just+a+test 

i getting exception:

facebookoauthexception: received facebook error response of type oauthexception: (#100) picture url not formatted]

i read here can add picture providing url , says meant 'app developers host images on amazon s3 or similar service'.

any idea i'm doing wrong?

i think it’s not “formatting” of picture url, content returns:

https://com-smallteaser-local-photo.s3.amazonaws.com/skydivemag%232fdefcfa-c7b2-4c0d-8504-9942ccd9a4b0%23648%230%232592%232592%23292%23292

is delivered content-type: application/octet-stream response header (as can see here) – , might make facebooks scraper think not image resource.

so have figure out how configure hosting space deliver these images correct content-type, example img/jpeg or img/png.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -