我想知道如何在 Facebook 应用程序中显示 CQ5 页面而不编写专用的 sling servlet?Facebook 添加了一个表单帖子来检索标记并插入到 iFrame 中。显然,除非您编写专用的 sling servlet 来处理,否则 CQ5 页面不允许 POST 操作。
由于某种原因,该页面位于/content/dam
以下是 Facebook 应用在画布中添加的内容:
<form action="<url>" method="post" target="iframe_canvas_fb_https" id="canvas_iframe_post_522050a15f2c72f17540952" onsubmit="return window.Event && Event.__inlineSubmit && Event.__inlineSubmit(this,event)"><input type="hidden" autocomplete="off" name="signed_request" value="TKQ-UKDi8meFDQgQaq_5c3LWD2R06EiibRdrTk7XldE.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImlzc3VlZF9hdCI6MTM3Nzg0OTUwNSwidXNlciI6eyJjb3VudHJ5IjoiaGsiLCJsb2NhbGUiOiJlbl9HQiIsImFnZSI6eyJtaW4iOjIxfX19"><input type="hidden" autocomplete="off" name="locale" value="en_GB"></form>
<iframe class="smart_sizing_iframe" frameborder="0" scrolling="yes" id="iframe_canvas" name="iframe_canvas_fb_https" src='javascript:""' height="800" webkitallowfullscreen="" mozallowfullscreen="" oallowfullscreen="" msallowfullscreen="" style="height: 232px;"></iframe>