1

I am trying to build a small experiment app for Facebook. And as it consists only of static files, I decided to try using Google Drive for hosting. As soon as I wrote Google Drive address to Facebook canvas, I tried to launch the app. What I got was a white screen and two error messages in Chrome js console:

https://googledrive.com/host/myWebViewLink/ POST 405 (Method Not Allowed)

https://googledrive.com/host/myWebViewLink/:1 Refused to display document because display forbidden by X-Frame-Options.

I tried to launch the app in iframe in a different website, and it worked fine, so probably the error is not in Google Drive iframe restrictions.

Also I tried to link a webpage not hosted in google drive to Facebook canvas, and it again worked for me, so probably the error is not in app configuration.

Could you please help me with that? Thanks in advance!

4
  • Can the Facebook debugger reach the URL?
    – Lix
    Dec 17, 2012 at 23:10
  • It can (Response Code: 200), however there are some OpenGraph warnings, like "'og:url' property should be explicitly provided" - not sure if it's relevant Dec 17, 2012 at 23:12
  • probably not, but the debugger is a great way to tell if Facebook has access to a URL.
    – Lix
    Dec 17, 2012 at 23:13
  • Possible duplicate of google drive hosting changes in URL
    – user5306470
    Nov 8, 2016 at 1:37

1 Answer 1

1

First of all, check the links you provided in your question, because they are invalid (404 not found).

As for 405 method not allowed, you can check yourself using web sniffer that google Drive doesn't support the POST method, only HEAD and GET.

As for X-Frame-Options, Google Drive doesn't show this header with GET requests, so you can put them in frames, like on GDrives.

2
  • that's because I made dumb links :) I tried to check GDrive, and warping my webview with it seems to work for http (solves both issues), but not for https. I already wrote my own warping in GAE, that is not an elegant but a working solution. Thanks! Dec 21, 2012 at 23:32
  • You're welcome! However, GDrives should work over https too: example
    – niutech
    Dec 23, 2012 at 1:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.