Need to allow access twice, error first time

Dec 16, 2010 at 5:48 PM

I've created a facebook app using the toolkit.  In the master page I use this tag for permissions:

<cc2:CanvasFBMLLoginControl ID="CanvasFBMLLoginControl1" runat="server" RequireLogin="true" RequiredPermissions="publish_stream" />

Everything works well, except for one huge problem.  The first time a user clicks the "allow" button, they see an error screen with a red box on top saying "An error occurred with TheApp. Please try again later."  (obviously changed the name of the app.)  There's an OK button on the bottom right of the screen, which when clicked goes back to the permission request screen.  When clicked we are sent to the app page, but it is blank.  If I hit the browser refresh, the app finally comes up.  I'm a novice with this toolkit, but it seems like the page is loading before the confirmation of permissions is registered... or something.  Has anyone encountered this problem?  We've had a couple people try to figure this out with no luck, so I turn to you.