This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new 05c4275  [OPENMEETINGS-2123] FB API is switched to use v4.0
05c4275 is described below

commit 05c4275bf3b09a15ca5c575fa45a6c455229400d
Author: Maxim Solodovnik <[email protected]>
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 23f35b0..171aa33 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
@@ -506,8 +506,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";)

Reply via email to