File tree Expand file tree Collapse file tree 6 files changed +2
-29
lines changed Expand file tree Collapse file tree 6 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export function _registerLogoutCallback(callback: Function) {
1616}
1717
1818export 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
Original file line number Diff line number Diff 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
2827export function _registerLogoutCallback ( callback : Function ) {
Original file line number Diff line number Diff line change 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 >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,5 @@ android {
99}
1010
1111dependencies {
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}
You can’t perform that action at this time.
0 commit comments