Skip to content

Commit 05aa522

Browse files
Dimitar TachevDimitar Tachev
authored andcommitted
Updated the Facebook android SDK to its latest version. Removed the logout call on loaded.
1 parent 17580ce commit 05aa522

File tree

6 files changed

+2
-29
lines changed

6 files changed

+2
-29
lines changed

src/login-manager.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function _registerLogoutCallback(callback: Function) {
1616
}
1717

1818
export function init(fbId: string) {
19+
com.facebook.FacebookSdk.setAutoLogAppEventsEnabled(true);
1920
setAppId(fbId);
2021
androidApplication = application.android;
2122
try {
@@ -27,7 +28,6 @@ export function init(fbId: string) {
2728
}
2829
onLoginCallback = com.facebook.CallbackManager.Factory.create();
2930
loginManager = com.facebook.login.LoginManager.getInstance();
30-
loginManager.logOut();
3131

3232
// Workaround for firing the logout event in android:
3333
// https://stackoverflow.com/questions/30233284/how-to-add-a-logout-callback-for-facebook-sdk-in-android

src/login-manager.ios.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export function init(fbId: string) {
2222
setAppId(fbId);
2323
loginManager = FBSDKLoginManager.alloc().init();
2424
loginManager.loginBehavior = FB_LOGIN_BEHAVIOUR;
25-
loginManager.logOut();
2625
}
2726

2827
export function _registerLogoutCallback(callback: Function) {
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3-
4-
<!--Describe the permissions, features or other configurations required by your plugin for Android.
5-
To read more about android permissions go to https://developer.android.com/guide/topics/permissions/index.html -->
6-
<!--EXAMPLE: uses-permission android:name="android.permission.INTERNET"/> -->
7-
83
<uses-permission android:name="android.permission.INTERNET"/>
9-
<application>
10-
<!--<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>-->
11-
<activity android:name="com.facebook.FacebookActivity"
12-
android:configChanges=
13-
"keyboard|keyboardHidden|screenLayout|screenSize|orientation"
14-
android:theme="@android:style/Theme.Translucent.NoTitleBar"
15-
android:label="@string/app_name" />
16-
</application>
17-
18-
194
</manifest>

src/platforms/android/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/platforms/android/include.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ android {
99
}
1010

1111
dependencies {
12-
// Describe plugin native Android dependencies like
13-
// compile "groupName:pluginName:ver"
14-
// EXAMPLE: compile "com.facebook.fresco:fresco:0.9.0+"
12+
compile "com.facebook.android:facebook-android-sdk:4.+"
1513
}
-764 KB
Binary file not shown.

0 commit comments

Comments
 (0)