Handle newly added fields on error response
oklahomer opened this issue · comments
Handling Errors introduces some new fields along with the old ones. These should be treated properly when stringified form of error representation is constructed at below:
p5-Facebook-OpenGraph/lib/Facebook/OpenGraph/Response.pm
Lines 92 to 122 in 8dbc3b5
NOTE: This was introduced in v2.1 as below:
In some cases (such as access token invalidation or expiry) the API now returns user-displayable error messages which describe the error and what the person may need to do to resolve it. These error messages will be returned in US English by default, but if you query the Graph API specifying the locale parameter (e.g. ?locale=es_ES) the string may be returned in the specified language.
The above description suggests these fields are not mandatory.