facebook app is not redirecting to login url so unable to open popup
<p>After login app it doesn't given allow popup from facebook window. Currently it is giving allow popup  when open from published url I think its not redirect to redirecturl in facebook aap but redirects it from localhost.</p>

<pre><code>string facebookAppId = System.Configuration.ConfigurationManager.AppSettings["FacebookAppId"];
string Curl = "https://publishedurl";
string ClientSecret = System.Configuration.ConfigurationManager.AppSettings["FacebookSecretKey"];
string currenturl = HttpContext.Current.Request.Url.AbsoluteUri;
string redirectpath = "https://graph.facebook.com/oauth/authorize?client_id=" +
                             facebookAppId + "&amp;redirect_uri=" + Curl + "&amp;scope=read_stream,offline_access,publish_actions,email";
ClientMessageBox.Show(redirectpath, this);
Response.Redirect(redirectpath, false);
if (!currenturl.Contains(MessageClass.URLCODE))
 {
       Response.Redirect(@"https://graph.facebook.com/oauth/authorize?client_id=" +
                              facebookAppId + "&amp;redirect_uri=" + Curl + "&amp;scope=read_stream,offline_access,publish_actions,email");
 }
</code></pre>
