Project

General

Profile

Actions

Bug #5539

closed

Oauth login with facebook api 2.8

Added by Alex Ignatov almost 8 years ago. Updated over 7 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.

Actions #1

Updated by André Jacobs almost 8 years ago

  • Status changed from New to Implemented @Emweb
Actions #2

Updated by André Jacobs almost 8 years ago

  • Assignee set to André Jacobs
Actions #3

Updated by Roel Standaert almost 8 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #4

Updated by Roel Standaert over 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF