Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Facebook SDK Initialization in Plugin v0.0.81 #88

Open
boengli opened this issue Dec 25, 2024 · 5 comments
Open

Issue with Facebook SDK Initialization in Plugin v0.0.81 #88

boengli opened this issue Dec 25, 2024 · 5 comments

Comments

@boengli
Copy link

boengli commented Dec 25, 2024

I encountered the following error while using the plugin version 0.0.81:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.DaringDestiny.app/com.facebook.FacebookActivity}: A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.

In my app, I only use Google Sign-In and do not utilize any Facebook-related functionality. Despite this, the plugin seems to attempt initializing the Facebook SDK, which causes this issue.

Could you clarify why the plugin tries to initialize the Facebook SDK even when Facebook isn’t in use, or suggest a way to prevent this behavior?

Thank you for your help!

@WcaleNieWolny
Copy link
Contributor

CC: @riderx

@riderx
Copy link
Contributor

riderx commented Jan 1, 2025

Hello @boengli this happen for a "dumb" reason.
The plugin include the Facebook lib, and the lib has a some messages to help devs understand why things not working.
So basically, they display this message automatically.
We cannot do anything about it for now, unless @WcaleNieWolny maybe make a magic trick to make the lib fail to fail to init

@WcaleNieWolny
Copy link
Contributor

@riderx This issue can be resolved easily with some conditional compilation. It should not be too difficult

@WcaleNieWolny
Copy link
Contributor

Ok, I give up.
This thing is beyond impossible in Java

@riderx
Copy link
Contributor

riderx commented Jan 2, 2025

i think i found a way, i published it:
9442714
Can you try 0.83.0 @boengli ?

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

No branches or pull requests

3 participants