[shotwell] facebook: Request popup login



commit 951840ff06efa0c0ecef2581a266886bc4604f24
Author: Jens Georg <mail jensge org>
Date:   Sat Jun 4 16:30:38 2016 +0200

    facebook: Request popup login
    
    As suggested by Facebook developer popup during login. Actually looks a lot
    nicer that using page.
    
    Signed-off-by: Jens Georg <mail jensge org>

 .../shotwell-publishing/FacebookPublishing.vala    |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/shotwell-publishing/FacebookPublishing.vala 
b/plugins/shotwell-publishing/FacebookPublishing.vala
index 04dc51f..f6cccb6 100644
--- a/plugins/shotwell-publishing/FacebookPublishing.vala
+++ b/plugins/shotwell-publishing/FacebookPublishing.vala
@@ -940,8 +940,7 @@ internal class WebAuthenticationPane : Spit.Publishing.DialogPane, Object {
 
     private string get_login_url() {
         string facebook_locale = get_system_locale_as_facebook_locale();
-
-        return 
"https://%s.facebook.com/dialog/oauth?client_id=%s&redirect_uri=https://www.facebook.com/connect/login_success.html&scope=publish_actions,user_photos,user_videos&response_type=token".printf(facebook_locale,
 APPLICATION_ID);
+        return 
"https://%s.facebook.com/dialog/oauth?client_id=%s&redirect_uri=https://www.facebook.com/connect/login_success.html&display=popup&scope=publish_actions,user_photos,user_videos&response_type=token".printf(facebook_locale,
 APPLICATION_ID);
     }
 
     private void on_page_load() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]