I’m struggling for about 2 days with authenticating a user from the server side.
Using asp.net 4, c# web forms and starting to use the C# SDK, building an app for page tab.
I need to authenticate a user with the Oauth diag.
If I use Response.Redirect, I get a blank screen on the tab.
according to http://developers.facebook.com/docs/authentication/pagetab/
I need to send a JS command in order to change window.top.location but how do I do this?
my login url:
https://www.facebook.com/dialog/oauth?client_id=482264391791260&redirect_uri=http://www.facebook.com/pages/null/153715871344670/?sk=app_482264391791260&response_type=code&display=popup&scope=email
Thanks!
The section entitled 2a. Redirect to OAuth Dialog upon page load on the very same page you mentioned has an example of doing exactly that …
So what exactly is your problem in getting it done?