Haha, no problem! Yep, it's in there (like you saw). I opened up a Stackoverflow post with the question here: http://facebook.stackoverflow.com/questions/11056283/iframe-showing-up-blank
On Fri, Jun 15, 2012 at 1:58 PM, Rafał Stożek <say...@gmail.com> wrote: > Sorry, I didn't read the code. > > > On Friday, June 15, 2012 6:56:56 PM UTC+1, Rafał Stożek wrote: >> >> Does this view accept POST requests? Because facebook uses POST to send >> you some data in signed_request param. >> >> On Friday, June 15, 2012 6:40:25 PM UTC+1, Kurtis wrote: >>> >>> I've created a very simple page. It pretty much just dumps out some html >>> with the text "Hello, Facebook". This view can be found at: >>> http://www.fireflie.com/**facebook/ <http://www.fireflie.com/facebook/> >>> >>> We created a very simple Canvas app on facebook pointing to this link. >>> It can be found here: >>> http://apps.facebook.**com/fireflietest/<http://apps.facebook.com/fireflietest/> >>> >>> For some odd reason, when I hit the view directly it prints out the text >>> without any problem. I can do a GET or POST request and get the same >>> results. However, when I view the Facebook app -- it shows nothing. It's >>> just blank. On the contrary, if I point it at other URLs which actually >>> have some real functionality and aren't CSRF Excempt -- then they show the >>> error page. But it's still some type of output. >>> >>> I've used Google Chrome and Firebug to try to see the response object >>> from my site. It looks like only the headers are being returned. Am I >>> missing something obvious? haha >>> >>> Here's the tiny little view that I'm using: >>> >>> from django.http import HttpResponse >>> from django.views.decorators.csrf import csrf_exempt, csrf_protect >>> >>> @csrf_exempt >>> def facebook(request): >>> body = """ >>> <html> >>> <head><title>Fireflie on Facebook</title></head> >>> <body>Hello, Facebook!</body> >>> </html> >>> """ >>> return HttpResponse(body) >>> >>> I looked through my nginx logs and saw these lines which are kind of >>> weird: >>> >>> 24.210.144.32 - fireflie [15/Jun/2012:17:09:34 +0000] "POST /facebook/ >>> HTTP/1.1" 200 31 >>> "http://apps.facebook.com/**fireflietest/<http://apps.facebook.com/fireflietest/>" >>> "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) >>> Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19" >>> 24.210.144.32 - - [15/Jun/2012:17:09:50 +0000] "-" 400 0 "-" "-" >>> 24.210.144.32 - - [15/Jun/2012:17:09:50 +0000] "-" 400 0 "-" "-" >>> 24.210.144.32 - - [15/Jun/2012:17:09:50 +0000] "-" 400 0 "-" "-" >>> 24.210.144.32 - - [15/Jun/2012:17:09:50 +0000] "-" 400 0 "-" "-" >>> 24.210.144.32 - - [15/Jun/2012:17:09:50 +0000] "-" 400 0 "-" "-" >>> 24.210.144.32 - fireflie [15/Jun/2012:17:10:05 +0000] "GET /facebook/ >>> HTTP/1.1" 200 111 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 >>> (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 >>> Chrome/18.0.1025.151 Safari/535.19" >>> >>> The first several lines are from my connection attempt using Facebook. >>> The last line is directly hitting the server. In this particular case I did >>> use two different browsers but I've tried it every browser I have. >>> >>> I'm up for any ideas people might have on debugging this problem. Thanks! >>> >> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/WB4GxsbA_QgJ. > > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.