<div dir="ltr">Regarding the iframe, here is the fbml in my source:<br><br><pre id="line1"> <span class="comment">&lt;!--Rendering the page using the following FBML retrieved from <a href="http://myserver.com:3001/offers">http://myserver.com:3001/offers</a><br>
You are seeing this because you are a developer of the application and this information may be useful to you in debugging.  The FBML will not be shown to other users visiting this page.:<br><br>&lt;fb:fbml&gt;<br>  &lt;a href=&quot;<a href="http://apps.facebook.com/myserver/offers">http://apps.facebook.com/myserver/offers</a>&quot;&gt;Offers&lt;/a&gt; &lt;br /&gt;<br>
  &amp;lt;fb:iframe src=&amp;quot;<a href="http://apps.kitnmedia.com/superrewards/offers.php?uid=153457602&amp;amp;h=mqhjh&amp;quot">http://apps.kitnmedia.com/superrewards/offers.php?uid=153457602&amp;amp;h=mqhjh&amp;quot</a>; width=&amp;quot;640&amp;quot; height=&amp;quot;2400&amp;quot; frameborder=&amp;quot;0&amp;quot; scrolling=&amp;quot;no&amp;quot; /&amp;gt;<br>
&lt;/fb:fbml&gt;<br>--&gt;</span></pre><br>When looking at the actual canvas page that my app is located at, this is displayed in plain text, but it should actually be the iframe of the offers displayed:<br><br>&lt;fb:iframe
src=&quot;<a href="http://apps.kitnmedia.com/superrewards/offers.php?uid=">http://apps.kitnmedia.com/superrewards/offers.php?uid=</a><span class="comment">153457602</span>&amp;h=mqhjh&quot;
width=&quot;640&quot; height=&quot;2400&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; /&gt;<br><br>I am using shanev&#39;s super rewards gem.&nbsp; Here is my controller code:<br><br>app/controllers/offerscontroller.rb<br>
&nbsp; def index<br>&nbsp;&nbsp;&nbsp; @offer_code = SuperRewards::Client.offers_display(:fbml, current_user.facebook_id)<br>&nbsp; end<br><br>Here is my view code<br><br>app/views/offers/index.fbml.erb<br><br>&lt;%= @offer_code %&gt;<br><br><br>
For some reason it looks as if the link that should be created from the offers_display method is being sanitized.&nbsp; Not sure if there is a problem with the way I set up the gem or if there is a problem with parsing the actual link.&nbsp; It seems the parse.rb file for the gem by shanev has many of the same methods as the parse.rb file included in facebooker, although they have been extracted to their own Reward module, along with a few other unique methods for the gem.&nbsp; The instructions on how to get the gem installed and working are very minimal, as running sudo gem install did not work.&nbsp; I had to download the files and place them in my app.&nbsp; I am not sure if I am supposed to include the files, or require the files, or use some other method of getting it working.&nbsp; So what I did, was placed the files in railsapp/lib folder, and I did an &quot;include {ModulesName}&quot; in the offerscontroller.&nbsp; Please let me know if there is a better way of doing this.&nbsp; I did not see a setup.rb file of install.rb file, and I am not sure where I would include/require the gem if I were to place it in my gems directory.<br>
<br>Here is the development.log data:<br><br>Processing OffersController#index (for <a href="http://127.0.0.1">127.0.0.1</a> at 2008-09-05 14:23:42) [GET]<br>&nbsp; Session ID: 07c11f9c0erdf193245ff23b-<span class="comment">153457602</span><br>
&nbsp; Parameters: {&quot;fb_sig_time&quot;=&gt;&quot;1220649821.887&quot;, &quot;fb_sig&quot;=&gt;&quot;65d5372a2a37583617db71e93164321b&quot;, &quot;fb_sig_in_new_facebook&quot;=&gt;&quot;1&quot;, &quot;_method&quot;=&gt;&quot;GET&quot;, &quot;fb_sig_locale&quot;=&gt;&quot;en_US&quot;, &quot;action&quot;=&gt;&quot;index&quot;, &quot;fb_sig_session_key&quot;=&gt;&quot;07c11f9c0erdf193245ff23b-<span class="comment">153457602</span>&quot;, &quot;fb_sig_position_fix&quot;=&gt;&quot;1&quot;, &quot;fb_sig_in_canvas&quot;=&gt;&quot;1&quot;, &quot;fb_sig_request_method&quot;=&gt;&quot;GET&quot;, &quot;controller&quot;=&gt;&quot;offers&quot;, &quot;fb_sig_expires&quot;=&gt;&quot;0&quot;, &quot;fb_sig_added&quot;=&gt;&quot;1&quot;, &quot;fb_sig_friends&quot;=&gt;&quot;2134137106&quot;, &quot;fb_sig_api_key&quot;=&gt;&quot;d34d0eb94f008ba670f8317e0vf3486a&quot;, &quot;fb_sig_user&quot;=&gt;&quot;<span class="comment">153457602</span>&quot;, &quot;fb_sig_profile_update_time&quot;=&gt;&quot;1217562451&quot;}<br>
&nbsp; User Load (0.000470)&nbsp;&nbsp; SELECT * FROM users WHERE (users.&quot;facebook_id&quot; = <span class="comment">153457602</span>) LIMIT 1<br>Rendering template within layouts/application<br>Rendering offers/index<br>
Completed in 0.24300 (4 reqs/sec) | Rendering: 0.00405 (1%) | DB: 0.00047 (0%) | 200 OK [<a href="http://myserver.com/offers">http://myserver.com/offers</a>]<br><br><br>Looking at the log data, there is no mention of fb_sig_in_iframe = 1.&nbsp; There are also no errors shown, just a sanitized iframe link.&nbsp; If you have any ideas of what is going wrong here, I would greatly appreciate any feedback.&nbsp; <br>
<br>Best<br><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 5:27 AM, Mike Mangino <span dir="ltr">&lt;<a href="mailto:mmangino@elevatedrails.com">mmangino@elevatedrails.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I don&#39;t think you send fb_sig_in_iframe to Facebook, I think they send it to you, don&#39;t they?<br>
<br>
When you include fb:iframe inside an FBML tag, Facebook adds an iframe with a URL that points to the source. On the first request, they include all of the normal Facebook parameters. The browser displays the result as HTML.<br>

<br>
Can you give us an example of what you are seeing and some of the code?<div class="Ih2E3d"><br>
<br>
<br>
On Sep 5, 2008, at 3:35 AM, Marco Durden wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
I am using fbml, and need to use &lt;fb:iframe&gt; inside an &lt;fb:fbml&gt; tag. &nbsp;This would mean I would need an fb_sig_in_iframe=1 in the signatures sent to facebook. &nbsp; When I try to display the &lt;fb:iframe&gt; link on a page, it displays what should be an iframe inserted into my page as plain text. &nbsp;When I view the source of the page, I check the fbml code, and it seems as if the entire link is sanitized. &nbsp;I know facebook sanitizes there links, but displaying an iframe inside fbml seems to be a problem that I can&#39;t seem to figure out. &nbsp;Has anyone else seen this problem? &nbsp;I didn&#39;t find anywhere in the facebooker code that uses the fb_sig_in_iframe. &nbsp;Any ideas are greatly appreciated.<br>

<br>
Best<br></div>
_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org" target="_blank">Facebooker-talk@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
</blockquote>
<br>
--<br>
Mike Mangino<br>
<a href="http://www.elevatedrails.com" target="_blank">http://www.elevatedrails.com</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>