Event Logging on Facebook Blogs

I am currently working on a messenger bot and am trying to log additional events using facebook app analytics platform.

Relevant documents:

Sample request (application censored):

curl -F 'event=CUSTOM_APP_EVENTS' \
 -F 'custom_events=[{"_app_user_id": "1", "_eventName": "my-test-event"}]' \
 -F 'advertiser_tracking_enabled=0' \
 -F 'application_tracking_enabled=0' \
 -F 'extinfo=["mb1"]' \
 -F 'page_id=xxx' \
 -F 'page_scoped_user_id=xxx' \
 -F 'access_token=xxx' \
 https://graph.facebook.com/xxx/activities

      

Problem:

When the above query is issued, the event will appear in my analyst ( https://www.facebook.com/analytics/xxx/?section=AppEvents

), but without the actual event. The number of events received remains zero, and the event debugger will show no action.

If I send an event without an access token (same request as above, only without an access token), the event is handled correctly.

As long as I can get it to work that way, I really don't think posting events without an access token should work at all. Could you just post them for my application?

Currently, the app remains in sandbox mode, so the issue may be related to this. Anyone have any experience with this?

Quick edit: Facebook users themselves submit the request using an access token as shown in it facebook sdk for android .

+2


source to share


1 answer


This call to the Graph API does not require an access token in order to dispatch bot messenger events. Did you get errors when submitting "valid" page_scoped_user_ids? If so, could you ask for more information? (App ID, page scoped user IDs that gave the error)?



0


source







All Articles