You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2019/10/15 14:51:26 UTC
[openmeetings] branch master updated: [OPENMEETINGS-2123] FB API is
switched to use v4.0
This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new 76d16f4 [OPENMEETINGS-2123] FB API is switched to use v4.0
76d16f4 is described below
commit 76d16f453689a8f56c6fa3fd11cffbad6878ab8b
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Tue Oct 15 21:50:57 2019 +0700
[OPENMEETINGS-2123] FB API is switched to use v4.0
---
.../java/org/apache/openmeetings/installation/ImportInitvalues.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java b/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java
index abd3fb8..65705c0 100644
--- a/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java
+++ b/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java
@@ -508,8 +508,8 @@ public class ImportInitvalues {
.setEnabled(false)
.setClientId(CLIENT_PLACEHOLDER)
.setClientSecret(SECRET_PLACEHOLDER)
- .setRequestKeyUrl("https://www.facebook.com/v2.10/dialog/oauth?client_id={$client_id}&redirect_uri={$redirect_uri}&scope=email")
- .setRequestTokenUrl("https://graph.facebook.com/v2.10/oauth/access_token")
+ .setRequestKeyUrl("https://www.facebook.com/v4.0/dialog/oauth?client_id={$client_id}&redirect_uri={$redirect_uri}&scope=email")
+ .setRequestTokenUrl("https://graph.facebook.com/v4.0/oauth/access_token")
.setRequestTokenMethod(RequestTokenMethod.POST)
.setRequestTokenAttributes("client_id={$client_id}&redirect_uri={$redirect_uri}&client_secret={$client_secret}&code={$code}")
.setRequestInfoUrl("https://graph.facebook.com/me?access_token={$access_token}&fields=id,first_name,last_name,email")