6

I am trying to develop Facebook tutorial "Friends Smash" but I got stuck in a big problem it does not shows any option for adding canvas and secure canvas URL in

Settings >> Add Platform >> Website

I am getting below options

How can I add canvas and secure canvas URLs?

Lix
  • 47,311
  • 12
  • 103
  • 131
Dipak
  • 672
  • 3
  • 9
  • 26

2 Answers2

2

Canvas and secure canvas URLs are only relevant for applications that are on Facebook. Your application (if you're on the "website" platform) doesn't have any use for canvas URLs.

An exerpt from the documentation talking about canvas applications:

Apps on Facebook are loaded into the Canvas section of the Canvas Page. The Canvas is quite literally a blank canvas within Facebook on which to run your app. You populate the Canvas by providing a Canvas URL that contains the HTML, JavaScript and CSS that make up your app. When a person using your app requests the Canvas Page, we load the Canvas URL within an iframe on that page. This results in your app being displayed within the standard Facebook chrome.

Lix
  • 47,311
  • 12
  • 103
  • 131
  • When i am trying to open http://apps.facebook.com/mygame it shows me error to add canvas and secure canvas url... – Dipak Jan 26 '14 at 10:33
  • If you want your application to run within Facebook you'll have to add "Facebook" as a platform to your application. – Lix Jan 26 '14 at 10:34
  • i added facebook platform and canvas url as domain:localhost canvas url:http://localhost/fb secure canvas url as blank....i am getting blank page if i use apps.facebook.com/mygame and i am getting error as API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration. if i use localhost/fb – Dipak Jan 26 '14 at 10:53
  • No more link you provided for `#canvas`. I has redirection somewhere – Green Mar 12 '16 at 06:22
  • @Lix could I put iframe inside code of my Secure Canvas Url? I just need to load all URLs that users insert into my app inside Facebook Canvas(if they are secure of course), so that's the only thing that works for me, but i wonder if Facebook allows iframe for app's secure canvas url. – Ognj3n Aug 22 '16 at 05:40
0

Click add Platform and then you can add your canvas url and secure canvas url.

user2779311
  • 1,688
  • 4
  • 23
  • 31