Facebook Analytics: user properties and logged eve

2019-06-21 23:33发布

I have facebook app (Messenger Bot App) where I am logging custom events for each user using the graph API endpoint /application/activities/

The events are logged perfectly. What I want to do is creating custom properties for my messenger bot users so I could segment the app data using this properties as described on: https://developers.facebook.com/docs/analytics/properties

So what I did was using the graph API endpoint /application/user_properties/ to create the properties.

It returned "success", the properties were created perfectly and I can see them as possible filters for segmentation on the app analytics page. But this filters always return no results!

I think the problem is: events are logged for specific "fb_user_id" but in user properties endpoint there is nothing to relate "fb_user_id" with the newly created properties.

on FB documentation https://developers.facebook.com/docs/analytics/properties it is stated:

When you set a user ID, this ID is stored on the user's device and included in app events logged from that device.

This means when calling the event logging endpoint there should be a parameter to hold the user id created by me when setting the user properties. But I am not able of finding this parameter. I tried send it as custom_events["_app_user_id"] but results remains the same and on app analytics page I can see the filters but it is useless.

1条回答
你好瞎i
2楼-- · 2019-06-21 23:43

Whereas custom_events["_app_user_id"] is the field for app event payloads, it looks like the field is custom_events["user_unique_id"] for user property payloads.

查看更多
登录 后发表回答