nguyentientoan / socialauth-net

Automatically exported from code.google.com/p/socialauth-net
0 stars 0 forks source link

Regular Facebook popup #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Try to login using the popupdemo.aspx in the WebForms Demo project.
2.The facebook popup that opens is the popupprocess.aspx and not the regular 
facebook popup. I do not want to go to the facebook page, instead i want the 
regular facebook popup like in http://www.gogobot.com/ 

What is the expected output? What do you see instead?
regular facebook popup like in http://www.gogobot.com/ 

What version of the product are you using? On what operating system?
v2.3

Original issue reported on code.google.com by monodee...@gmail.com on 4 Jan 2013 at 3:41

GoogleCodeExporter commented 8 years ago
Issue 156 has been merged into this issue.

Original comment by deepak.a...@3pillarglobal.com on 29 Jan 2013 at 1:19

GoogleCodeExporter commented 8 years ago
This doesn't seem to be already implemented. It requires to change parameter 
from display=page to display=popup. We're working on this.

Deepak

Original comment by deepak.a...@3pillarglobal.com on 29 Jan 2013 at 1:20

GoogleCodeExporter commented 8 years ago
Hi,

To do this, you would need to alter the Facebookwrapper. I've provided sample 
code below. Since, it is very specific to Fb, at the moment we aren't updating 
standard Library.

 public override OAuthStrategyBase AuthenticationStrategy
        {
            get {
                var strategy =  _AuthenticationStrategy ?? (_AuthenticationStrategy = new OAuth2_0server(this));
                ((OAuth2_0server)strategy).BeforeDirectingUserToServiceProvider += (p)=>p.Add(new QueryParameter("display","popup"));
                return strategy;
                }
        }

Deepak

Original comment by deepak.a...@3pillarglobal.com on 11 Feb 2013 at 5:41