Amazon S3 & Facebook Fanpage app


Hits: 10981  

I want to link Amazon S3 https object like “https://s3.amazonaws.com/bucket/index.html” to facebook iframed fan page…
But it returned error….

405 Method Not Allowed
Code: MethodNotAllowed
Message: The specified method is not allowed against this resource.
ResourceType: OBJECT
Method: POST
RequestId: XXXXXXXXXXXXX
HostId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

OR

PreconditionFailedAt least one of the pre-conditions you specified did not holdBucket POST must be of the enclosure-type multipart/form-data….. 🙁

OR

<Error>
<Code>PreconditionFailed</Code>
<Message>At least one of the pre-conditions you specified did not hold</Message>
<Condition>Bucket POST must be of the enclosure-type multipart/form-data</Condition>
<RequestId>F681CE6EB61CFAA3</RequestId>
<HostId>hMQd22w34G0TpwISr1gQDB/TdUniRjhJ355Scc9RxOWreDDb5XWYwEFzutkhjX72</HostId>
</Error>

After few searches I got link…. but not helpful 🙁
http://www.hyperarts.com/blog/facebook-secure-browsing-https-iframe-tabs-mixed-content-warnings/

Finally, I got good article on AWS Forum..
https://forums.aws.amazon.com/thread.jspa?messageID=228930

I came to know that facebook loads the requested HTTPS S3 URL “https://s3.amazonaws.com/bucket/index.html” by sending a form POST and injected some content into the iframe, but S3 have POST for file uploading only… so it returned “MethodNotAllowed”

Bucket Policies won’t work in this condition… 🙁

Now, I have few options to use S3 HTTPS Object “https://s3.amazonaws.com/bucket/index.html” in facebook iframed fan page…

1. Run a HTTPS Apache server that can load S3 HTTPS Object with POST method and supply to fan page 🙂
2. Load S3 HTTPS Object using another iframe on any server… see code below

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Facebook Fan Page - Amazon S3</title>
</head>

<body>
<iframe frameborder="0" style="width: 520px; height: 800px;" src="https://s3.amazonaws.com/svwpmu/index.html" scrolling="no"></iframe>
</body>
</html>

You can check videos released on blog 9th May 2011 for more detailed installation…

I have partnered with Shelle Kind of facebook social marketing and we have released the Amazon S3 / EC2 Solution for Facebook fanpage apps.

Partner: Shelle-K | Custom graphic and web developer

When MIND is weak situation is a PROBLEM, when MIND is balanced situation is CHALLENGE, when MIND is strong situation is an OPPORTUNITY 😉
 

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch

32 thoughts on “Amazon S3 & Facebook Fanpage app”

  1. Thanks for this post! I’ve been scratching my head frantically trying to figure out the problem…

    As for the workaround, are you saying I can use either option 1 or 2, or do you mean I need to use both?

    I’ve tried doing just the iframe with the sub-page as https, but it hasn’t worked for me. I’ve tried using the main page containing the iframe as an https (obviously that doesn’t work because that gets me the original error message), and also using a regular http page, which loads blank when my facebook account is https-activated.

    Am I missing something?

  2. I wanted to use AWS for the SSL, are you saying we need to host the landing page on our own SSL enabled domain name? Can’t you run a web server from AWS which supports POST requests instead of relying on two servers/endpoints?

  3. Pingback: Positions
  4. Howdy very nice web site!! Guy .. Beautiful .. Wonderful ..

    I will bookmark your site and take the feeds also?
    I’m satisfied to search out numerous useful info here
    within the put up, we need develop extra techniques on this regard, thanks for
    sharing. . . . . .

  5. That is very fascinating, You are a very skilled
    blogger. I’ve joined your feed and look ahead to in search of more of your magnificent
    post. Also, I have shared your site in my social networks

  6. May I just say what a comfort to find an individual who genuinely understands what they’re discussing on the
    net. You certainly realize how to bring an issue to light and make
    it important. A lot more people should read this and understand this
    side of your story. I was surprised that you aren’t more popular given that you most
    certainly have the gift.

  7. Undeniably believe that that you stated. Your favorite reason appeared to be on the net the simplest thing to take into
    account of. I say to you, I definitely get annoyed at the
    same time as other folks consider concerns that they just do not recognise about.
    You controlled to hit the nail upon the top as well as defined
    out the whole thing without having side-effects , other folks could take a signal.
    Will probably be again to get more. Thanks

  8. great publish, very informative. I ponder why the other experts of this sector
    do not realize this. You must proceed your writing.
    I’m confident, you have a great readers’ base already!

  9. Howdy very cool site!! Man .. Beautiful ..
    Amazing .. I’ll bookmark your site and take the feeds also?
    I’m satisfied to find a lot of useful info here in the put
    up, we need develop more techniques in this regard, thank you for sharing.
    . . . . .

  10. Thanks for a marvelous posting! I actually enjoyed reading it,
    you can be a great author.I will be sure to bookmark your blog and definitely will come back
    sometime soon. I want to encourage continue your
    great writing, have a nice morning!

  11. of course like your website however you need to
    take a look at the spelling on quite a few of
    your posts. Several of them are rife with spelling problems
    and I find it very troublesome to inform the reality nevertheless I’ll definitely come back again.

  12. Hello there, just became aware of your blog through Google, and found that it is really informative.
    I am going to watch out for brussels. I’ll be grateful if you
    continue this in future. Lots of people will be benefited from your writing.
    Cheers!

  13. I’ve been exploring for a little for any high quality articles or weblog posts in this kind of area .
    Exploring in Yahoo I eventually stumbled upon this web
    site. Reading this information So i am happy to exhibit that I
    have a very excellent uncanny feeling I found out exactly what I needed.
    I such a lot without a doubt will make certain to do not forget this web
    site and provides it a glance on a relentless basis.

  14. magnificent issues altogether, you simply gained a
    emblem new reader. What might you suggest in regards to your
    post that you simply made some days in the past? Any sure?

  15. I have been exploring for a bit for any high-quality
    articles or blog posts in this kind of area . Exploring in Yahoo
    I at last stumbled upon this web site. Studying this info So i’m glad to exhibit
    that I’ve an incredibly excellent uncanny feeling I came upon just
    what I needed. I so much unquestionably will make sure to do not overlook this website and provides
    it a glance regularly.

Leave a Reply

Your email address will not be published.

*