This project is read-only.

Missing sample code for application

Nov 1, 2012 at 12:20 AM

Hi all --

Where can I download the sample code for the ASP.NET integration?  The website seems to point me to URL's that do not have that specific example available.

Help please!!



Nov 1, 2012 at 7:46 AM

You can find sample codes for canvas and iframe apps that use ASP.NET at . For integration with general ASP.NET websites, there are no sample codes at the moment, but the tutorial at should provide a good guideline about what to do.

Nov 1, 2012 at 1:41 PM

Hi kayson,

The documentation isn't quite enough, it gets someone who isn't a FB/OAuth/Graph exper about 70% there but even that was a bit of a struggle..

We have the login/redirect stuff working fine.  What we can't figure out is when Facebook redirects us back to our page, what code we should use on PageLoad to get the new FB information (email, etc) without re-calling Login().  Login can't be right..




Nov 1, 2012 at 8:20 PM

Calling Login() is the correct step. If the user is not logged in yet, the browser will be redirected to Facebook. If the user has already logged in (i.e. return from Facebook), the method call captures the login information. The Login() method can be described as "try to capture FB access token, redirect to Auth if fail".

The CanvasContext, WebContext and PageTabContext classes all behave exactly the same way.