Answer the question
In order to leave comments, you need to log in
How to set up a standard event in FacebookSDK?
Tell me how to set up the code for your application to track the content view event (transition from one activity to another). The Facebook reference ( https://developers.facebook.com/docs/app-events/ge... gives the following code for the view content event:
/**
* This function assumes logger is an instance of AppEventsLogger and has been
* created using AppEventsLogger.newLogger() call.
*/
public void logViewedContentEvent (String contentType, String contentData, String contentId, String currency, double price) {
Bundle params = new Bundle();
params.putString(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE, contentType);
params.putString(AppEventsConstants.EVENT_PARAM_CONTENT, contentData);
params.putString(AppEventsConstants.EVENT_PARAM_CONTENT_ID, contentId);
params.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, currency);
logger.logEvent(AppEventsConstants.EVENT_NAME_VIEWED_CONTENT, price, params);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question