jcvandan
jcvandan

Reputation: 14334

Is it possible to use a locally hosted application on a page tab application during development?

I want to be able to display my application in an iframe via a page tab on someone's profile, I have a local version of my application running with SSL (although it is a self assigned certificate), on https://localhost:443.

When I set this url as the canvas url for the canvas page it works correctly, but as a page tab nothing is displayed. In fact upon inspecting the html where I believe the iframe should be there isn't even an iframe, and no actual request is being made to my application.

Does facebook make the request to the page tab url from their servers or something?? (as this would obviously mean you couldn't use a local version of your app). Or does it something to do with the markup my app is returning, as people on the net seem to be saying that you cannot return <html>, <body> or <head> tags to a page tab application.

Help. Please.

here is an image of my settings page for the app

Upvotes: 0

Views: 227

Answers (1)

Juicy Scripter
Juicy Scripter

Reputation: 25938

Yes this is possible by configuring "Page Tab URL" and "Secure Page Tab URL" in the application settings.

Once application is visited (both canvas and page tab) Facebook issuing POST request to your app, but it's still made by the User's browser.

Update:
This seems like a bug on Facebook end, if you'll visit your application page tab while browsing Facebook over HTTPS it'll work, but if you not using "Secure Facebook" the canvas isn't even requested. As a solution for development you can use Facebook over HTTPS or use HTTP version as "Page Tab URL".

Upvotes: 1

Related Questions