Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Canvas URL / Secure Canvas URL error message

Tags:

facebook

I'm currently trying to get a Facebook App up and running.

But I get the following error-message, when I try to access the app URL:

Sorry, the application you were using is misconfigured. Please try again later. Message for Developers Only: To fix this error, please set your Canvas URL / Secure Canvas URL in the application settings editor. Once it has been set, your users will be redirected to that URL instead of this error page.

This is how my URLs is set up:

  • Page Tab URL: http://www.somesite.dk/facebook/index.php
  • Secure Page Tab URL: https://www.somesite.dk/facebook/index.php
  • Page Tab Edit URL: http://www.somesite.dk/facebook/index.php

I've tested all URLs and they're perfectly fine, https works.

My index.php only has the following content:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Facebook test</title>

</head>

<body>

<h1>Works!</h1>

</body>

Do I need to link to some files from the Facebook SDK to test my app? Facebook app dev is uncharted territory to me, so any hints on how to go about this is highly appreciated.

like image 217
timkl Avatar asked Nov 07 '11 08:11

timkl


2 Answers

I have tried to configure your application, and had no problem to get it running. You can try it out here: https://apps.facebook.com/cbb-example/.

As Igy explained in his answer, you need to set the "Secure Canvas Url" not the "Secure Page Tab url". See attached image.

Configuration of example app

like image 60
disco Avatar answered Sep 30 '22 20:09

disco


The three parameters you mentioned are the page tab URL, the secure page tab URL and the page tab edit URL, these are used in the context of your app being installed as a tab on a Facebook Page.

The error message you're seeing is regarding your Canvas URL and secure Canvas URL, which is the content loaded when you access 'http://apps.facebook.com/yourapp' - if you're not building a canvas app you shouldn't need those, but neither will the apps.facebook URL work

like image 23
Igy Avatar answered Sep 30 '22 21:09

Igy