Native Facebook Login not working after upgrade

Hi,

After upgrading from 2.2 to 2.12 logging in with facebook (native on cordova, web still works) broke.

Before, in 2.2 I used to use this package The trusted source for JavaScript packages, Meteor.js resources and tools | Atmosphere and it worked perfectly, after the upgrade however this package doesn’t work anymore because it requires an older version of accounts-base that’s not compatible anymore.

I tried multiple packages, the only one that compiled was The trusted source for JavaScript packages, Meteor.js resources and tools | Atmosphere, every other package didn’t compile because of the accounts-base package (it required older version).

The problem is that I am getting this error For your account security logging into facebook from an embedded browser is disabled · Issue #110 · cordova-plugin-facebook-connect/cordova-plugin-facebook-connect · GitHub.

I was looking for meteor packages but none of them have been updated in a while…

Pinging @filipenevola because I saw that they had a facebook native login plugin but that’s not compiling either, any plans on updating it?

If the problem is the version of accounts, you probably can bump this package version in your dependencies.

It’s probably not a breaking change affecting FB package.

Have you tried that?

Yes, I tried upgrading btafel package.js from

Package.describe({
  summary: "Login service for Facebook (2.4) accounts (works with cordova)",
  version: "0.0.8",
  git: "https://github.com/btafel/accounts-facebook.git",
  author: "Bryan Tafel",
  name: "btafel:accounts-facebook-cordova",
});

Package.on_use(function(api) {
  api.versionsFrom('1.2.0.1');
  api.use('accounts-base', ['client', 'server']);
  // Export Accounts (etc) to packages using this one.
  api.imply('accounts-base', ['client', 'server']);
  api.use('accounts-oauth', ['client', 'server']);
  api.use('facebook-oauth@1.3.1', ['client', 'server']);

  api.use('service-configuration', ['client', 'server']);
  api.use('http', ['server']);
  api.use('underscore', 'server');

  api.add_files('facebook_server.js', 'server');
  api.add_files("facebook.js");
});

to

Package.describe({
  summary: "Login service for Facebook (2.4) accounts (works with cordova)",
  version: "0.0.8",
  git: "https://github.com/btafel/accounts-facebook.git",
  author: "Bryan Tafel",
  name: "btafel:accounts-facebook-cordova",
});

Package.onUse(function(api) {
  //api.versionsFrom('1.2.0.1');
  api.use('accounts-base', ['client', 'server']);
  // Export Accounts (etc) to packages using this one.
  api.imply('accounts-base', ['client', 'server']);
  api.use('accounts-oauth', ['client', 'server']);
  api.use('facebook-oauth@1.11.2', ['client', 'server']);

  api.use('service-configuration', ['client', 'server']);
  api.use('http', ['server']);
  api.use('underscore', 'server');

  api.addFiles('facebook_server.js', 'server');
  api.addFiles("facebook.js");
});

But I got the same error so I’m not sure if it’s because of the package or not

Also deleted the .versions file altogether

Could you paste your error messages here?

Also, is your local copy of the package in your packages folder or the folder configured in your METEOR_PACKAGE_DIRS?

I don’t get any console errors, just the error above "

For your account security logging into facebook from an embedded browser is disabled

Basically I click the button, a popup shows up to accept cookies (if I remember correctly this is new, before update I wasn’t encountering it) and after I accept them I get an error


The package is in my local /packages directory

I also have this in my facebook settings
image