jeduan / cordova-plugin-facebook4

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
765 stars 510 forks source link

Logged standard event are not shown in event manager on Facebook page #796

Closed BeataG closed 3 years ago

BeataG commented 5 years ago

Hi,

sorry for bothering you but I was not able to find solution anywhere else.

When I log facebook standard event like this (params are empty): this.fb.logEvent(this.fb.EVENTS.EVENT_NAME_COMPLETED_REGISTRATION, params);

this event is not shown on Event Manager on Facebook.

After some search I found on one page which says that I need to use event name from this page

so now when I call something like this: this.fb.logEvent('fb_mobile_complete_registration', params); events are displaying in Event Manager but there is warning that I need to send currency and value parameters but when log this event using valueToSum it's not working and I need to create something like this:

this.fb.logEvent('fb_mobile_complete_registration', { fb_registration_method: 'email', _valueToSum: 0, fb_currency: 'SEK' });

And I wonder why this is the way can achieve this? Do I missing something?

My plugin implementation: `

    <variable name="APP_NAME" value="name" />
    <variable name="FACEBOOK_HYBRID_APP_EVENTS" value="false" />
    <variable name="FACEBOOK_ANDROID_SDK_VERSION" value="4.40.0" />
</plugin>` 
kamanatripathi commented 5 years ago

I'm facing the same issue. I even tried codeless event but I'm unable to pickup and drop if you found the solution please revert. Thank you

ionic #facebook4

facebook4AppEvent #cordova

drugoi7 commented 4 years ago

Same here. Manual logging with standard events is not shown.

Following...

gonzad77 commented 4 years ago

Any solution?

Thank you

luna-almeida-coding commented 4 years ago

i'm facing a similar issue. My problem is that using standard events property results in a error "Cannot read property 'EVENT_NAME_VIEWED_CONTENT' of undefined". Anyone call help me?

noahcooper commented 3 years ago

This plugin is deprecated. Check out cordova-plugin-facebook-connect at https://www.npmjs.com/package/cordova-plugin-facebook-connect.

I believe this.fb.EVENTS exposes the standard event names you're looking for (see https://github.com/ionic-team/ionic-native/blob/master/src/%40ionic-native/plugins/facebook/index.ts), I'm not sure if that was the case when this issue was originally opened.