nuudel-main 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ const ProfileCallback = function (request, reply) {
12
12
  reply.send(err);
13
13
  return;
14
14
  }
15
- self.oauth2.get('https://graph.facebook.com/v12.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name', accessToken, function (err, body, res) {
15
+ self.oauth2.get('https://graph.facebook.com/v13.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name', accessToken, function (err, body, res) {
16
16
  reply.send(facebook_1.default.callback(err, body, res));
17
17
  return;
18
18
  });
@@ -11,7 +11,7 @@ class Profile extends coreProfile_1.coreProfile {
11
11
  super();
12
12
  this.provider = 'facebook';
13
13
  this.URL =
14
- 'https://graph.facebook.com/v12.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name,is_guest_user';
14
+ 'https://graph.facebook.com/v13.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name,is_guest_user';
15
15
  this.credentials = {
16
16
  client: {
17
17
  id: FB_CLIENT_ID,
@@ -129,9 +129,9 @@ const oauthPlugin = (fastify, options, next) => {
129
129
  exports.oauthPlugin = oauthPlugin;
130
130
  exports.oauthPlugin.FACEBOOK_CONFIGURATION = {
131
131
  authorizeHost: 'https://facebook.com',
132
- authorizePath: '/v12.0/dialog/oauth',
132
+ authorizePath: '/v13.0/dialog/oauth',
133
133
  tokenHost: 'https://graph.facebook.com',
134
- tokenPath: '/v12.0/oauth/access_token',
134
+ tokenPath: '/v13.0/oauth/access_token',
135
135
  };
136
136
  exports.oauthPlugin.GOOGLE_CONFIGURATION = {
137
137
  authorizeHost: 'https://accounts.google.com',
@@ -6,7 +6,7 @@ export const ProfileCallback = function (request, reply) {
6
6
  reply.send(err);
7
7
  return;
8
8
  }
9
- self.oauth2.get('https://graph.facebook.com/v12.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name', accessToken, function (err, body, res) {
9
+ self.oauth2.get('https://graph.facebook.com/v13.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name', accessToken, function (err, body, res) {
10
10
  reply.send(Profile.callback(err, body, res));
11
11
  return;
12
12
  });
@@ -8,7 +8,7 @@ export class Profile extends coreProfile {
8
8
  super();
9
9
  this.provider = 'facebook';
10
10
  this.URL =
11
- 'https://graph.facebook.com/v12.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name,is_guest_user';
11
+ 'https://graph.facebook.com/v13.0/me?fields=id,name,last_name,first_name,email,picture,gender,link,short_name,is_guest_user';
12
12
  this.credentials = {
13
13
  client: {
14
14
  id: FB_CLIENT_ID,
@@ -122,9 +122,9 @@ export const oauthPlugin = (fastify, options, next) => {
122
122
  };
123
123
  oauthPlugin.FACEBOOK_CONFIGURATION = {
124
124
  authorizeHost: 'https://facebook.com',
125
- authorizePath: '/v12.0/dialog/oauth',
125
+ authorizePath: '/v13.0/dialog/oauth',
126
126
  tokenHost: 'https://graph.facebook.com',
127
- tokenPath: '/v12.0/oauth/access_token',
127
+ tokenPath: '/v13.0/oauth/access_token',
128
128
  };
129
129
  oauthPlugin.GOOGLE_CONFIGURATION = {
130
130
  authorizeHost: 'https://accounts.google.com',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuudel-main",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "main module for nodejs of nuudel",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",