WordPress.org

Ready to get started?Download WordPress

Forums

Srizon Facebook Album
Album works for a few hours per day, then stops. (7 posts)

  1. mrjoee
    Member
    Posted 11 months ago #

    How do I keep it working permanently as it seems it is reaching a limit? Please note I have the free version as I do not need titles. I am happy to purchase the full version if it fixes the issue, but it doesn't say anywhere this is a limitation of the free version.

    Many thanks,

    Joe

    http://wordpress.org/extend/plugins/srizon-facebook-album/

  2. afzal_du
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,
    It's not a limitation. Something is going wrong!
    I think facebook connectivity problem with your server.
    Try increasing the sync time. Too much syncing (small sync time) may cause problem (although facebook didn't mention any api call limit I guess there is one)

  3. mrjoee
    Member
    Posted 11 months ago #

    Thanks for the quick reply. I had a read through some of the other support issues and already increased the sync time to 1440 minutes three days ago and this hasn't solved the issue. I also changed the fb remote data function two days ago as per another of your support tickets (see bottom of post) and this also didn't solve the problem.

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    I ran your debug script and received the following:

    "error": {
          "message": "(#4) Application request limit reached",
          "type": "OAuthException",
          "code": 4
       }

    Does the plug-in use an API and is it perhaps being maxed out by other users?

    This is the steps to replace the function I used:

    1. open srizon-fb-album-front.php (or srizon-fb-album-front-pro.php in case of pro version)
    2. locate the last function 'srz_fb_remote_to_data'
    3. replace that whole function with the following version (assuming you have curl library enabled on your server)

    function srz_fb_remote_to_data($url){
    if(isset($_GET['debugjfb'])){
    echo 'getting remote data from:'.$url;
    }
    
    require_once (dirname(__FILE__) . '/mycurl.php');
    
    $fbcurl = new SrzFBMycurl($url);
    $fbcurl->createCurl();
    $fbcurl->setUserAgent('');
    $fbcurl->setCookiFileLocation('');
    $fbcurl->setReferer('');
    $data = $fbcurl->tostring();
    if(isset($_GET['debugjfb'])){
    echo "\n".'wp_remote_get and curl failed to get the api response. either the pageid or albumid is wrong or your server is blocking all remote connection functions!';
    }
    
    return $data;
    }
  4. afzal_du
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,
    On a shared server (using the same ip) others may be using facebook API. I'm not sure what's the limit but it seems your server is reaching the daily limit before ending the day.
    One way to solve the problem is to move your site to a different server if possible.
    I'll see if I can find a solution.

  5. mrjoee
    Member
    Posted 11 months ago #

    Thanks. I actually migrated it over to another host last night and it is still doing the same. Perhaps both servers are reaching it, although having been googling the error, many people believe it could be a facebook bug?

  6. afzal_du
    Member
    Plugin Author

    Posted 11 months ago #

    did you try syncing it after migrating?
    However, yes it might be a facebook bug. you may try with other public pages as galleries (for example use sharapova or nadal or cocacola as page id).
    Many people are using this plugin and there's also a Joomla extension being used for 2 years. Only few people faced this kind of problem.

  7. mrjoee
    Member
    Posted 11 months ago #

    Yes, I tried with some other popular pages as you suggested but it still doesn't seem to want to work. I have also tried other plug-ins and they return the same error. I have even set up an app with ID and secret to grant access and it works for users, but not public pages. I do not know why this is happening. It seems to be working just fine on another host so it seems this may be the issue, but laughing squid are usually very reliable when it comes to hosting wordpress.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.