Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter olliedc

    (@olliedc)

    As an update, I’ve identified the cause of this issue as a bug in the Divi theme, not correctly handling the cause of the exception thrown when MailPoet API getSubscriber function is called. Rather than checking the code of the exception (APIException::SUBSCRIBER_NOT_EXISTS being a valid response when testing to see if the subscriber exists), it treats all exceptions as errors.

    I’ve raised this with the Divi support team.

    I have the same problem… other Twitter plugins don’t seem to have the same restriction, so it looks like a bug in XHanch MyTwitter. You’d expect to (still) be able to create different profiles aligned to different accounts, but you can’t. I hope XHanch fix this… I can’t find another WordPress Twitter plug-in offering the same customisation and functionality.

    Just to add, I’ve looked at the plugin source now (here), and see that the code was changed between v1.1.1 and 1.1.2 to switch from ‘posts’ to ‘feed’.

    I have this problem too. As a quick hack, Plugins -> Editor -> (Recent Facebook Posts) -> Edit recent-facebook-posts/classes/class-rfb.php

    Find the function renew_cache_file(), and I’ve changed a few lines as follows:

    $apiResult = $fb->api(trim($opts[‘fb_id’]) . ‘/posts?with=message&limit=250′);

    if(!$apiResult or !is_array($apiResult) or !isset($apiResult[‘data’]) or !is_array($apiResult[‘data’])) { return false; }

    $data = array();
    foreach($apiResult[‘data’] as $p) {
    if(!in_array($p[‘type’], array(‘status’, ‘photo’, ‘video’, ‘link’))) { continue; }

    In the first line, it used to read “feed?with=message” rather than “posts?with=message”; and in the last one I added the ‘link’ option so link posts are included.

    As I say, it’s a bit of a hack, having played with the Facebook API Explorer, however I can’t find the full API documentataion so don’t know why the plugin author has used the method which has been used, nor really understand the API call syntax at all! Works (for me!) though…

Viewing 4 replies - 1 through 4 (of 4 total)