dimanche 19 avril 2015

couldn't make Android ParseFacebookUtils.initialize(this) to work

I added this to MyApplication .create() method



FacebookSdk.sdkInitialize(getApplicationContext());
Parse.initialize(getApplicationContext(), PARSE_APP_ID,PARSE_CLIENT_KEY);
Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
ParseFacebookUtils.initialize(this);


Error:(30, 39) error: incompatible types: MyApplication cannot be converted to String ! initialize function take Context as a parameter so why it's not working ?!!!



public static void initialize(android.content.Context context) { /* compiled code */ }

Aucun commentaire:

Enregistrer un commentaire