pal4life
pal4life

Reputation: 3378

Facebook app landing page to be index.php

I am looking to execute some php code on the default landing page for my Facebook app but the app url currently only searches for index.html. Is there a way in which this landing page can be a php page instead of just being an html page?

Update: How about being able to use: www.example.com/index.php

The configuration under Canvas Page only looks for a URL address with a / at the end of it so does not need a ending page instead just needs a folder.

Maybe I am missing something here.

Thanks.

Upvotes: 0

Views: 575

Answers (2)

Nitzan Tomer
Nitzan Tomer

Reputation: 164337

As @MozMorris showed, you can include '?' to tell facebook that the url is of a dynamic page and not a static one. But you can always set the order in which the server looks for the file to serve in case it was not specific.

In apache for example you can use the .htaccess file for that, as explained in Set Your Directory Index (Homepage) Using .htaccess. That way you can still end the url in the settings with '/' and have it served by index.php and not index.html.

Upvotes: 1

Moz Morris
Moz Morris

Reputation: 6771

enter image description here

Upvotes: 1

Related Questions