Skip to content

Commit 0e83e5b

Browse files
authored
Merge pull request #215 from NativeScript/hristova/update-init-sdk-order
fix: update init sdk order
2 parents 74dc087 + 4c02860 commit 0e83e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/login-manager.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export function _registerLogoutCallback(callback: Function) {
1515
}
1616

1717
export function init(fbId: string) {
18-
com.facebook.FacebookSdk.setAutoLogAppEventsEnabled(true);
1918
setAppId(fbId);
2019
androidApplication = application.android;
2120
try {
2221
// fb initialization
2322
com.facebook.FacebookSdk.sdkInitialize(androidApplication.context.getApplicationContext());
23+
com.facebook.FacebookSdk.setAutoLogAppEventsEnabled(true);
2424
}
2525
catch (e) {
2626
console.log(e);

0 commit comments

Comments
 (0)