Project

General

Profile

Actions

Bug #5539

closed
I AJ

Oauth login with facebook api 2.8

Bug #5539: Oauth login with facebook api 2.8

Added by Alex Ignatov over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/04/2017
Due date:
% Done:

0%

Estimated time:

Description

I'm using wt-3.3.6 on ubuntu 16.04 server. Trying to use standard facebook oauth functionality resulted in Wt::Json::TypeException. It turned out that Wt's FacebookService uses the following request url - https://graph.facebook.com/me?access_token=xxx In this case the returned response contains only user's name and id parameters. At the same time FacebookService class requires email parameter, otherwise the exception is thrown. A quick workaround is to replace the request url by https://graph.facebook.com/me?fields=name,id,email&access_token=xxx
to explicitly ask facebook to provide required parameters.

AJ Updated by André Jacobs over 9 years ago Actions #1

  • Status changed from New to Implemented @Emweb

AJ Updated by André Jacobs over 9 years ago Actions #2

  • Assignee set to André Jacobs

RS Updated by Roel Standaert over 9 years ago Actions #3

  • Status changed from Implemented @Emweb to Resolved

RS Updated by Roel Standaert over 9 years ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom