3

Closed

This webpage has a redirect loop

description

Hi,
 
I am using Facebook Graph Toolkit (Latest release: 1.5, 18 May 2011) and Set up my ASP.NET application with Facebook Graph Toolkit.
and create my Facebook-Graph-Toolkit-Sample.aspx page. write down this code
 
protected void btnFbAuth_Click(object sender, EventArgs e)
{
    if (Api == null)
    {
        RedirectToFacebookAuthorization();
    }
}
 
and when I click first time on btnFbAuth button its working fine but when I click on btnFbAuth button second time. Its giving This error:
 
 
This webpage has a redirect loop
 
The webpage at https://graph.facebook.com/oauth/authorize?client_id=165446510138815&redirect_uri=http://mywebsite.com/Facebook-Graph-Toolkit-Sample.aspx?code=_ajY3_KtShNHy5XJJoH5D70sir9ouRAhAI5mKMPOrwY.eyJpdiI6IkZyUmwwZGtRSnd4YXp2RTc4Z25jQ2cifQ.svaxa6nvvQtNVJKjAtjc4-FzB9iRf0DE07vIv2rf4uZwYUErYZudEqhVWM2jxVvcg_-3weIxKM948bPT1lVCdJXHqEgVGCUTPleV5yzXgWrG0QsEmVhDg6GSQZP9vAoG&scope= has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:
Reload this web page later.
 
 
why this is happening I can't understand please help me.
 
dhemittal@gmail.com
Closed Mar 25, 2012 at 3:51 PM by kayson
Issue expired as there has been no update for more than 3 months.

comments

web4net wrote Jun 20, 2011 at 3:25 PM

I am having a VERY similar issue.

Were you able to resolve this?

web4net wrote Jun 20, 2011 at 3:28 PM

Also, I narrowed it down to U.ID being null. There for auth is failing.

Any idea why? it works sometimes and other it does not?

giuice wrote Jul 28, 2011 at 1:56 PM

I don't know the way this happen, but i know how to solve this, You cannot have "offline_access" on your ExtendedPermissions , if you registered a app you have to remove and set the permissions again without "offline_access".

wrote Jul 28, 2011 at 2:32 PM

alexa_adrian2001 wrote Aug 19, 2011 at 11:01 AM

I would also want to find out the solution :|

wrote Oct 10, 2011 at 9:46 AM

heyadamhey wrote Oct 10, 2011 at 9:48 AM

"publish_stream" is supposed to supercede "offline_access", but there doesn seem to be a bug in the FGT - when using "offline_access" on a SocialPage you get a redirect loop

wrote Mar 25, 2012 at 3:51 PM

wrote Feb 14, 2013 at 6:29 PM

wrote May 16, 2013 at 8:43 AM