Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Xamarin.Facebook.Core.Android - Login attempt failed #251

Open
SebastienLinsFlyx opened this issue Feb 23, 2023 · 2 comments
Open

Xamarin.Facebook.Core.Android - Login attempt failed #251

SebastienLinsFlyx opened this issue Feb 23, 2023 · 2 comments

Comments

@SebastienLinsFlyx
Copy link

SebastienLinsFlyx commented Feb 23, 2023

Hello,

The Facebook connection of my application does not work anymore.
I got the error

Login attempt failed.
at com.facebook.login.LoginManager.onActivityResult(LoginManager.java:226)

I have these settings in my Manifest

<uses-permission android:name="android.permission.INTERNET"/>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id" />
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="@string/facebook_client_token" />
 <activity android:name="com.facebook.FacebookActivity"
      android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
      android:label="@string/app_name" />
    <activity
      android:name="com.facebook.CustomTabActivity"
      android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="@string/fb_login_protocol_scheme" />
      </intent-filter>
    </activity>

Do you know what I miss ?

Thank you

@patkozlowski
Copy link

Your manifest is correct comparing to mine. Check this, it worked for me in Android 13 by adding these upgraded nugets to log in. #237 (comment)

@mhdwaelanjo
Copy link

We can use this library now Facebook
Audience Network SDK for .NET for Android Anjo.Android.Facebook.AudienceNetwork (>= 6.16.0)
and for login Anjo.Android.Facebook (>= 16.2.0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants