Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Zynga is Amazon's big customer in public cloud. But, when I play CityVille, the URL is served from facebook's server. It looks confusing to me. Can anyone explain the architecture and share of work among Zynga, facebook and amazon? Thanks.

share|improve this question
add comment

closed as off topic by Sathya Mar 13 '13 at 8:57

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Only the URL you see is one of Facebook. The page contains a frame which is included from Amazon.

According to Facebooks getting started on apps page:

Apps on Facebook.com are loaded into a Canvas Page. A Canvas Page is quite literally a blank canvas within Facebook on which to run your app. You populate the Canvas Page by providing a Canvas URL that contains the HTML, JavaScript and CSS that make up your app. When a user 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.

For example, suppose that you have a web app available at http://www.example.com/canvas. This is your Canvas URL. When you setup your app on Facebook, you must specify a Canvas Page name that is appended to https://apps.facebook.com/. In this example, we will use your_app as the Canvas Page name. When the user navigates to https://apps.facebook.com/your_app in their browser, they will see the contents of http://www.example.com/canvas loaded inside of Facebook.com.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.