I have inherited a FB application in ASP.NET that uses the CanvasFBMLLoginControl and I'm having some problems with the control.
When the page loads, I get a Facebook.Utility.FacebookException: Invalid parameter error. The detail shows the markup to render the control.
<cc2:CanvasIFrameLoginControl ID="CanvasIFrameLoginControl1" RequireLogin="true" runat="server" />
I go to the page in question (a master page) and see the following error in the design view of the page.
Error Creating Control - CanvasFBMLLoginControl1
Session must have application key and secret before logging in. To set them in your web.config, use something like the following: <appsettings><add key="Apikey" value="YOURApiKey" /><add key="Secret"
Looking at the control, I can't see where or what the missing parameter is. Has anyone encountered this before?