Results 1 to 5 of 5

Thread: Facebook blank page

  1. #1
    Kaustubh is offline Unknown Net Builder
    Join Date
    Jan 2011
    Posts
    38
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Facebook blank page

    Hello,
    I have delete the facebook plugin now facebook works fine but it load blank pages, does anybody have solution, working this up. I really need facebook to work properly. Anyone can suggest solution !

  2. #2
    UncleP's Avatar
    UncleP is offline The perfect face for radio
    Join Date
    Nov 2009
    Location
    Blighty
    Posts
    218
    Thanks
    20
    Thanked 91 Times in 61 Posts
    I have two files in my plugins folder, you might need both too. One makes it use the mobile version and I have no idea what the other does but it can't hurt to have it.

    The first is facebook.com.php (copy code and save as... then upload):
    Code:
    <?php
    /*****************************************************************
    * Plugin: Facebook
    * Description:
    * Changes the user-agent so Facebook sends us the mobile version.
    ******************************************************************/
    function preRequest() {
       global $toSet;
       $toSet[CURLOPT_USERAGENT] = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 6.1)';
    }
    and the second is fbcdn.net.php (ditto):
    Code:
    <?php
    /*****************************************************************
    * Plugin: Facebook
    * Description:
    *  (1) Disables the "Queue transfers" option for external stylesheets
    *      and javascript on Facebook, allowing a faster pageload time.
    *      Lag is especially noticeable on Facebook due to the huge number
    *      of external resources required. Anything to reduce the lag is useful!
    *  (2) Fixes an AJAX problem avoiding the "Network Error #1001" message
    *  (3) Fixes a major navigation issue when Facebook attempts to change the URL
    *      on-the-fly.
    ******************************************************************/
    $CONFIG['queue_transfers'] = false;
     
    /**
     * Pre-parser for changes before the main proxy parser.
     * @param string $input
     * @param string $type can be "javascript", "css" or "html"
     * @return string
     */
    function preParse($input, $type) {
       // What type of document do we have?
       switch ( $type ) {
     
          case 'javascript':
     
             global $URL;
     
             // Apply changes to the main javascript file
             if ( strpos($URL['filename'], '84ccno2p1zc44848.pkg.js') !== false ) {
     
                // Target:  _interpretTransportResponse for parsing the AJAX reply
                // Problem: uses eval() to interpret response but our eval() wrapper
                //          creates a scoping issue, resulting in no response getting back
                // Change:  use the return value instead of setting a value within the eval()
                // Line:    801
                #$input = str_replace("eval('response = ('+safeResponse+')')","response = eval('('+safeResponse+')')", $input);
     
                // Target: unknown
                // Problem: as above but another fix is required somewhere.
                // To do: find out where and do a more specific change.
                $input = str_replace("eval", 'base_eval', $input);
     
                // Target:  _filter() function for determining if Facebook should mess with the URL
                //          defaults to true after checking for various special cases
                // Problem: unknown, just that it tries to take us to the wrong URL and hangs
                // Change:  always return false
                // Line:    613
               # $input = str_replace('return true;},getProtocol:f', 'return false;},getProtocol:f', $input);
     
     
             }
     
             break;
       }
     
       return $input;
    }
    Give those a try, hope it helps
    If I can't be a good example, I'll just have to be a terrible warning...

  3. Thanked by:

    TryLord (10 January, 2011)

  4. #3
    codename_B's Avatar
    codename_B is offline PHP Coder
    Join Date
    Jan 2011
    Posts
    106
    Thanks
    9
    Thanked 14 Times in 11 Posts
    I'm also offering one in exchange for linkbacks (see here).
    http://find-new-proxies.com Auto Approval Proxy List
    http://uf6.info Free Text File Hosting

  5. #4
    Kaustubh is offline Unknown Net Builder
    Join Date
    Jan 2011
    Posts
    38
    Thanks
    6
    Thanked 2 Times in 2 Posts
    @UncleP Thank you, you always been very very helpful. Keep it up and i just installed the version you suggested, working great.

    @Codename Thank you so much, but the script you have, has got loads of bugs so its not fully functional, i would rather keep my visitor stucked with mobile version.

  6. #5
    codename_B's Avatar
    codename_B is offline PHP Coder
    Join Date
    Jan 2011
    Posts
    106
    Thanks
    9
    Thanked 14 Times in 11 Posts
    Alright. I'll keep working on the script. Hopefully I'll be able to eke more functionality out of it

    If anyone who knows anything about AJAX wants to help me, I'm open to offers.
    http://find-new-proxies.com Auto Approval Proxy List
    http://uf6.info Free Text File Hosting

Similar Threads

  1. Admin side of phpld directory is blank page
    By iowadawg in forum Directories
    Replies: 4
    Last Post: 31 December, 2010, 06:49 AM
  2. [WTS] Small Facebook Page!
    By EvanP in forum Marketplace
    Replies: 10
    Last Post: 3 August, 2010, 17:33 PM
  3. Replies: 4
    Last Post: 26 April, 2010, 11:02 AM
  4. facebook login blank on glype
    By neverlast in forum Web Proxies
    Replies: 1
    Last Post: 25 October, 2009, 03:47 AM
  5. How to put ads on a facebook fan page?
    By hendricius in forum Monetizing
    Replies: 12
    Last Post: 17 August, 2009, 15:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •