Android Question [solved] Facebook login fails

AymanA

Active Member
Licensed User
Hi All,

I am trying to apply the facebook login following the example on this link but it fails in compiling.

I have tried to re-add the required resources, removing and installing the FB sdk 11.20, researched the forum and can only see this link referring to the error but can not find a solution or any other similar problem.

Current SDK version: 6609375

I am using B4xPages in the attached project; however I have added the facebook.initialize in starter.

The error received is:

Error while compilation:
B4A Version: 11.50
Parsing code.    (0.13s)
    Java Version: 11
Building folders structure.    (4.31s)
Running custom action.    (0.06s)
Compiling code.    (4.40s)
Compiling layouts code.    (0.28s)
Organizing libraries.    (0.08s)
    (AndroidX SDK)
Compiling resources    (2.73s)
Linking resources    (3.29s)
Compiling debugger engine code.    (17.05s)
Compiling generated Java code.    Error
B4A line: 13
facebook.Initialize
src\net\fitcap\starter.java:182: error: method Initialize in class FacebookSdkWrapper cannot be applied to given types;
_facebook.Initialize(processBA);
         ^
  required: no arguments
  found: BA
  reason: actual and formal argument lists differ in length

Note: I also tried to add the facebook.initialize to the B4XMainpage but received similar error.

Attached is the project that fails with this error.

I appreciate if anyone had this problem before to shed some lights, thank you for your help!
 

Attachments

  • Project.zip
    43.7 KB · Views: 5

AymanA

Active Member
Licensed User
Thank you so much Erel! I checked the internal folder and can see there was a facebook.jar file!! I have not added it there; however after removing the file, it is now working fine.

I really appreciate ur help! I would have never thought to search on this folder!
 
Upvote 0
Top