Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat options are there for embedding the Facebook Authorization Dialog in a custom modal dialog?
    primarykey
    data
    text
    <p>I am using ASP.Net MVC3 and have a very basic web site that uses the server side flow to perform the Facebook authentication and authorization. Presently the login button is defined with the following HTML:</p> <p><a href="http://www.facebook.com/dialog/oauth/?scope=user_about_me%2Cpublish_stream%2Coffline_access&amp;state=eyJRCOEEiLCJyZXR1cm5fdXJsIjpudWxsfQ&amp;display=popup&amp;client_id=27444390&amp;redirect_uri=http%3A%2F%2Flocalhost%3A1200%2FAccount%2FFacebookCallback" rel="nofollow"> </a></p> <p>I am able to get the user redirected to Facebook where they login and authorize the permissions and the site does get redirected back to my controller with an authorization token that I can convert to an access token. I have the 2 following problems that I am trying to solve:</p> <p>1) Within the anchor's href, I have the "....display=popup" and was hoping that would result in a popup but instead my entire page is redirected to Facebook. Is there a way to use the server side flow with some JS to make the authorization dialog as a popup without resorting to using the Facebook Javascript SDK?</p> <p>2) Assuming I can show the Authorization dialog as a popup, is there a way to force it to show within a truly MODAL popup dialog such as a jQueryUI Dialog so we can add some content with it? I have seen sites that have the popup but it just dims the page but it doesn't enforce that the user to complete the authorization before clicking back on the page.</p> <p>Any insight is much appreciated.Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload