[gnome-online-accounts/gnome-3-10] facebook: Update the code to request a compact web UI
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] facebook: Update the code to request a compact web UI
- Date: Tue, 1 Apr 2014 09:03:33 +0000 (UTC)
commit 7593fa364ffa05506e033f5b6ef12a9969913f17
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 31 18:06:58 2014 +0200
facebook: Update the code to request a compact web UI
Earlier we were using m.facebook.com as the host in the authorization
URI. That does not work anymore. Now we need to use www.facebook.com
and display=popup.
According to:
https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow
https://developers.facebook.com/docs/reference/dialogs/oauth/
Fixes: https://bugzilla.gnome.org/726609
src/goabackend/goafacebookprovider.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goafacebookprovider.c b/src/goabackend/goafacebookprovider.c
index 06cdf8e..d374353 100644
--- a/src/goabackend/goafacebookprovider.c
+++ b/src/goabackend/goafacebookprovider.c
@@ -1,6 +1,6 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
- * Copyright (C) 2011, 2012, 2013 Red Hat, Inc.
+ * Copyright (C) 2011, 2012, 2013, 2014 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -107,6 +107,7 @@ build_authorization_uri (GoaOAuth2Provider *provider,
uri = g_strdup_printf ("%s"
"?response_type=token"
+ "&display=popup"
"&redirect_uri=%s"
"&client_id=%s"
"&scope=%s",
@@ -120,7 +121,7 @@ build_authorization_uri (GoaOAuth2Provider *provider,
static const gchar *
get_authorization_uri (GoaOAuth2Provider *provider)
{
- return "https://m.facebook.com/dialog/oauth";
+ return "https://www.facebook.com/dialog/oauth";
}
static const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]