Facebook Login Stopped working Meteor Cordova

#1

Hi Everyone,

I have a running project in Meteor and Facebook login has stopped working in it. Also, I got alert from the Facebook Developer Console that I need to update the Facebook SDK to version 4.39.0 to get this running.

Also, the problem is with FACEBOOK_ANDROID_SDK_VERSION it needs to be added as mentioned here but its value not getting retrived successuflly in the build.gradle file generated using meteor run android device command.

AFAIK, the problem is FACEBOOK_ANDROID_SDK_VERSION is undefined in the build.gradle so its value is not getting picked. We need to pass value for this variable into build.gradle and I don’t knows how to do that.
It would be great if I can get any help from the community.

Here is my Mobile-config.js
App.configurePlugin(‘cordova-plugin-facebook4’, {
** APP_ID: ‘XXXXXXXXXXXXX’,**
** APP_NAME: ‘XXXXXXX XXXXXX’,**
** FACEBOOK_ANDROID_SDK_VERSION: ‘4.+’**
});

the generated build.gradle in cordova.build

dependencies {
compile fileTree(dir: ‘libs’, include: ‘*.jar’)
// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: “CordovaLib”, configuration: “debug”))
releaseCompile(project(path: “CordovaLib”, configuration: “release”))
compile “com.android.support:support-v13:23+”
compile “com.google.android.gms:play-services-gcm:+”
compile “com.squareup.okhttp3:okhttp:3.1.2”
compile “com.facebook.android:facebook-android-sdk:$FACEBOOK_ANDROID_SDK_VERSION”
// SUB-PROJECT DEPENDENCIES END
}
Please help its very serious concern.

#2

Updating the Meteor to latest version worked for me.