如何将CQ5 / AEM页面与Facebook App集成

时间:2013-08-30 08:16:55

标签: facebook facebook-apps cq5 aem

我想知道如何在没有编写专用吊索servlet的情况下在Facebook App中显示CQ5页面? Facebook添加了一个表单帖子来检索标记并插入到iFrame中。 显然,CQ5页面不允许POST操作,除非你编写一个专用的sling servlet来处理。

由于某种原因,该页面位于/content/dam

之内

以下是Facebook App在画布中添加的内容:

<form action="<url>" method="post" target="iframe_canvas_fb_https" id="canvas_iframe_post_522050a15f2c72f17540952" onsubmit="return window.Event &amp;&amp; Event.__inlineSubmit &amp;&amp; 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>

0 个答案:

没有答案