I tried to find this on the facebook site in my documentation, but so far no luck. I'm sure others must have come across this before.
I use Amazon S3 to store images. I did not know in advance that if I named my bucket my domain name with a subdomain, I could associate it in this way, so until I transfer all the photos that I need to associate with mybucket.s3.amazonaws.com domain. When I include a picture with an inscription on the wall, the image does not appear. If I changed the image to one on the server itself, the image will appear. It seems that the domain name of the image should fit my application? I looked at bugzilla and did not see this. The Facebook forum says to post questions here.
I am using the C # Facebook SDK from CodePlex.
My code looks like (with error handling and authentication):
var client = new FacebookClient(FACEBOOK_APP_ID, FACEBOOK_SECRET);
client.AccessToken = facebook.AccessToken;
var parameters = new Dictionary<string, object>();
parameters.Add("name", name);
parameters.Add("caption", title);
parameters.Add("message", message);
parameters.Add("link", link);
parameters.Add("source", link);
parameters.Add("picture", imageUrl);
client.Post("me/feed", parameters);
I checked that imageUrl really has the correct image, the domain name just doesn't match. The picture on amazon s3 has open read access. I can view it from a browser, so I don't think this is a resolution problem. I tried several different photos with the same problem. Only the time during which it worked is when the image was on the server itself.
So my question is, is this a problem with me, or is it blocking facebook images that do not match the domain name specified in the application?
source
share