3

Googling didn't help me. I'm trying to push data on Facebook dashboard via Facebook app events My code is:

    AppEventsLogger logger = AppEventsLogger.newLogger(this);
    logger.activateApp(this, Utility.FACEBOOK_ID);
    logger.logEvent(AppEventsConstants.EVENT_NAME_COMPLETED_TUTORIAL);

So, activateApp works fine, but logEvent doesn't. I've checked app ID and recreated it, but I have the same problem.

Anton Kashpor
  • 1,255
  • 2
  • 18
  • 34

2 Answers2

0

Hi you can try add the next row after 'logEvent' method.

logger.flush();

I hope it will be helpful for you.

Nazar Ivanchuk
  • 127
  • 1
  • 7
0

you need to make sure you have initialized the FB successfully before you calling the logger events:

Facebook.sdkInitilize(Context context);
slfan
  • 8,950
  • 115
  • 65
  • 78
Yachao
  • 37
  • 3