Closed arronmabrey closed 9 years ago
Hum, FB returned wrong format of message tags. There are no changes in message tags format during v1.0 to v2.2. https://developers.facebook.com/docs/graph-api/reference/v2.2/post
Probably asking to FB developer support is better.
The FB docs seem to suggest the data that was received is correct. Unless I'm missing something, which happens most of the time :smile:
[
{
"id" => "5xxxxx2",
"name" => "John Smith",
"type" => "user",
"offset" => 0,
"length" => 14
}
]
Here is a pull-request that works correctly with the data FB is sending. https://github.com/nov/fb_graph/pull/382
No, message_tags on posts should be a JSON object (Hash in ruby), not JSON array. ref.) https://github.com/nov/fb_graph-mock/blob/master/mock_json/posts/with_message.json
You might be fetching another type of object. Try fetch the object using Graph API Explorer with "metadata=true" option, then you'll see "type". https://developers.facebook.com/tools/explorer
@nov thanks for the "metadata=true" tip. It looks like the object is a "comment" not a post. Sorry for the trouble. :-)
Seems like Facebook is sending new data that
fb_graph
is unable to handle.The following code...
...causes this code in
lib/fb_graph/post.rb#L44-L50
......to raise this error.
Adding debug:
Outputs:
Let me know if you need additional information. I'm happy to help.
Thanks, -- Arron
EDIT: we're using the latest version
fb_graph-2.7.17