I am developing a facebook application. When a new user uses the facebook link, the user is first redirected to a screen with facebook logo and then redirected to facebook permission screen immediately. How to avoid first redirection, ie. to facebook logo screen? I want to go directly to the facebook permission screen.
I am redirecting to the page using the code below:
string authLink = string.Format(
"{0}?client_id={1}&redirect_uri={2}&scope={3}",
new object[]
{
"https://graph.facebook.com/oauth/authorize",
"APPID",
"CallBackURL",
FBPermissions.email + "," +
FBPermissions.user_about_me + "," +
FBPermissions.user_birthday + "," +
FBPermissions.publish_stream + "," +
FBPermissions.user_status + "," +
FBPermissions.user_photos
}
);
Response.Redirect(authLink);
I am developing the application with asp.net c#.
I am using graph api also.
Please guide me how to achieve the above.
Thanks in advance.
Sujith.
So let me try to understand this better; you’re trying to bypass the login, and re-direct them immediately to the permissions page? How would this work exactly? For new users facebook, as with any application that will affect permissions of any kind, needs to know what user they’re dealing with. The redirection to the login page greatly depends on if the user is already authenticated on their machine. In short, there may be some occasions where the login page isn’t “visited” by the user, and they are simply redirected to the permissions page, but this will depend on the user having already logged into facebook and saved their authentication, which can’t be guaranteed.