Hi,
A lot of the work I do is Facebook page tab apps - and one of the nitpicks about Facebook apps, is they're best when they're loaded from a single URL and never redirected/refreshed. This is because the signedRequest only gets posted once.
I currently have an app that determines whether the user is from New Zealand or Australia, and redirects to /nz/ or /au/ accordingly. I then use FirstChildRedirect to grab the first published competition page.
This works, but it isn't ideal.
I have tried to return $modx->getResource(), but I just get an array dump (yes, I have set tpl and the other required properties)
So, my question is - when I go to
http://myurl.com/ - can I do the calculations on the backend and return whichever resource I like in place, without navigating/changing the URL/redirecting?
Thanks,
Ahren.