<br />Hello dear godoters<br /><br />I'm new to the android API and trying currently to write android module to make the user login to his facebook account from my game, and I have a problem trying to achieve this, since the facebook login requires initialization from a FragmentActivity extended class like the sample here:<br /><br />//
<br />public class MainActivity extends FragmentActivity {<br /> CallbackManager callbackManager;<br /> <a target="blank" rel="nofollow"></a><a target="blank" rel="nofollow">@Override<br</a> /> public void onCreate(Bundle savedInstanceState) {<br /> super.onCreate(savedInstanceState);<br /> FacebookSdk.sdkInitialize(getApplicationContext());<br /> callbackManager = CallbackManager.Factory.create();<br /> LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() {...});<br /> }<br />//
<br /><br />and the code here requires the current FragmentActivity to be passed as argument:<br /><br />//
<br />LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("public_profile"));<br />//
<br /><br />I tried to add a new Fragment class and it compiled correctly but the game always crash on the line with (this) variable.<br /><br />so my question is how to make a proper login process from inside the Godot SingletonBase? is there any decent way or trick to achieve this ?<br />has any one managed to do this ?<br />any help would be appreciated.<br /><br />thanks in advance.