Bug in calling the FB API in 2.0.1
-
I just installed the plugin and wanted to build a custom widget from it. So I called the following:
$rfbpPosts = RFBP_Public::instance()->get_posts();
. But it unfortunately always returns an empty array.So I debugged the code and found in the class
RFBP_API
the doubled definition of the fieldpicture
in line 44. The FB API returns the following when requesting it like that:{"error":{"message":"Syntax error \"Field picture specified more than once. This is only possible before version 2.1\" at character 58: id,picture,type,from,message,status_type,object_id,picture,name,caption,description,link,created_time,comments.limit(1).summary(true),likes.limit(1).summary(true)","type":"OAuthException","code":2500}}
Could you please fix that? I think this will also fix the reports of the plugin not working recently.
Best regards,
Benni
- The topic ‘Bug in calling the FB API in 2.0.1’ is closed to new replies.