Quantcast
Channel: Pragmatic Forums | Posts by Bill Gathen
Viewing all articles
Browse latest Browse all 25

Invitation form comes up blank (page 40) posted by Bill Gathen @ Wed, 30 Dec 2009 12:18:39 +0000

$
0
0

On page 40, I’ve dl’d the invitations page code snippet and added it as app/views/invitations/new.erb (I also created an empty new method in invitations_controller.rb), but when I hit the app with a test user that hasn’t allowed the app, I just get a facebook page with no content in the canvas area.

My logs show the following:

Processing InvitationsController#new (for 127.0.0.1 at 2009-12-30 07:01:30) [GET] Parameters: { ...all the fb_sig params here… }
Filter chain halted as [:ensure_authenticated_to_facebook] rendered_or_redirected.
Completed in 204ms (View: 3, DB: 0) | 200 OK [http://web1.tunnlr.com/]

If I hit the tunnlr.com url:port listed in my Canvas Callback URL directly from the browser, I get the “Allow” page. After I click “Allow” I get the blank page again.

After I’ve allowed the app, I see the same log entry, but with this line before it:

Swapping facebooker config: ’...hash code…’

I’ve set the post-authorize redirect url to the canvas page without a trailing slash as mentioned elsewhere on the forums, but when I revisit the canvas admin page, the url appears with a trailing slash. Also, FB indicates that leaving this field blank will accomplish the same thing.

Should the canvas render method be set to iframe or fbml? The book doesn’t say and I’ve tried both, but no change.

Thanks,
Bill


Viewing all articles
Browse latest Browse all 25

Trending Articles