Me / feed with pic from different domains

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?

+5
source share
3 answers

URL-, .

: http://developers.facebook.com/blog/post/526/?ref=nf

API- Graph URL

Graph API. MIME- . URL- . :

  • , Amazon S3
    URL S3 Facebook ,
    Facebook.
    .
  • , , .

URL-, HTTP POST ALBUM_ID/ url, URL- , . publish_stream . , .

+4

. , , facebook , url .

2 URL .

mybucket.s3.amazonaws.com -

s3.amazonaws.com/mybucket -

:picture => 'http://mybucket.s3.amazonaws.com/footprints/15/coverimgs/medium.jpg'
OAuthException: (#100) picture URL is not properly formatted

:picture => 'http://s3.amazonaws.com/mybucket/footprints/15/coverimgs/medium.jpg'
{"id"=>"587472956_10150280873767957"}

, URL- , API- FB.

+4

. , , 301 , URL- Amazon.

0

All Articles