Skip to content

Commit 4c02860

Browse files
author
Elena Hristova
committed
fix: update init sdk order
1 parent 74dc087 commit 4c02860

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)