Avg Release Cycle
127 days ago
go.modimport path from
github.com/huandu/facebook/v2. Since go1.14, incompatible versions are omitted by default.
MakeParamsis aware of struct field tag
"json"now. It works quite similar to
json.Marshalexcept that it makes any data to
Paramsinstead of JSON string. Thank @samber for your input.
[FIX]#148 Fix a panic in
Param#Encodewhen a nil value is included in
Param. Thanks again, @samber.
[NEW]#126 #128 Support v3.3 rate limiting header
UsageInfo. Use it in any
Result#UsageInfo(). It's also available in
PagingResult#UsageInfo(). Thanks @OwlLaboratory for raising this change for me. And Thanks @AlphaB for your PR.
RFC3339Timestampsflag to set
date_formaton every API request. If this flag is set, all date value returned by facebook will be encoded with a format supported by
json.Unmarshal. Thanks, @robbiet480.
[NEW]#105 Added ability to override
Sessionbase URL. It's designed for unit testing. All session requests can be redirected to a test server by setting
Session#BaseURLto a test URL. Thanks, @vania-pooh.