Closed marselester closed 8 years ago
@marselester thanks for bringing this up. I think implementing json.Unmarshaler to handle conversion would be a better idea. If facebook finally decides to switch to strings as they plan it'd be easy to just get rid.
Hi Maciej,
Unfortunately Facebook is not consistent with entry IDs. For messages it uses strings
{"object":"page","entry":[{"id":"123",
, but for postbacks ints{"object":"page","entry":[{"id":123,
.Not sure what would be a proper way to handle that, I use
json.Number
and hope Facebook migrates to strings eventually.