I'm currently writing a Facebook app that runs in a page tab. I'm writing it as a simple Web Forms app in C#, using the latest version of the C# SDK pulled from NuGet. The main page tab works fine. I get all the info I need from FacebookWebContext.Current.SignedRequest, and I'm fine there. I'm trying to write a page now that the page admin would use to set up the app, so this is the page that would go under the "Edit URL" in the app setup.

All I really want to do is get the currently signed-on user's ID, and determine if he's an admin for the page in question.

I'm doing this:

```
var client = new FacebookClient();
dynamic me = client.Get("me");

```

in Page\_Load, and getting the following exception:

```
(OAuthException) An active access token must be used to query information about the current user.

```

I've tried a bunch of stuff to get the access token, but I don't seem to know what I'm doing wrong. Is there a straightforward way of doing this?

**Update:**
I figured out at one point that I had a reference to the old JS SDK on my master page, and that was causing a problem. (See [here](http://www.takwing.idv.hk/tech/fb_dev/faq/jssdk/jssdk_02.html)). Removing that got me to the point where I was *usually* able to see whether or not the user was actually logged in to Facebook.