Is this issue with the browser or Facebook?

Discussion in 'Programming' started by KangBroke, Nov 1, 2014.

  1. #1
    http://www. eddieruble .com / peaceofsunshine/

    If you look in FF, The Facebook pull out on the right hand side works fine.

    If you look in Chrome or IE, the pull out on the right hand side is invisible.

    Looking for opinions, possible workaround
     
    Solved! View solution.
    KangBroke, Nov 1, 2014 IP
  2. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #2
    What is the code you're using for the facebook box?
     
    Brandon Sheley, Nov 1, 2014 IP
  3. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #3
    <div class="facebook_box">
      <script src="//connect.facebook.net/en_US/all.js#xfbml=1"></script>
      <fb:fan profile_id="<?php echo $this->config->get('facebook_likebox_id'); ?>" stream="0" connections="16" logobar="0" width="237" height="389"></fb:fan> 
      <script type="text/javascript">   
      $(function(){       
            $(".facebook_right").hover(function(){           
            $(".facebook_right").stop(true, false).animate({right: "0" }, 800, 'easeOutQuint' );       
            },
      function(){           
            $(".facebook_right").stop(true, false).animate({right: "-245" }, 800, 'easeInQuint' );       
            },1000);   
      });
      </script>
    </div>
    
    Code (markup):
     
    KangBroke, Nov 1, 2014 IP
  4. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #4
    It doesn't seem like the like box is showing at all, can you try getting the like box to show on another part of the page where it is visible constantly?
     
    Anveto, Nov 2, 2014 IP
  5. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #5
    I have not tried that, I will give that a go and see what happens. But for me it works 100% in the latest FireFox.
     
    KangBroke, Nov 2, 2014 IP
  6. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #6
    Yea, I see the issue, it's just that the box with the like box seems to have no like box in chrome/IE so I was wondering if you get the same issue if you put the like box somewhere else on that website
     
    Anveto, Nov 2, 2014 IP
  7. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #7
    Well, it works now, so I guess you fixed it?
     
    PoPSiCLe, Nov 2, 2014 IP
  8. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #8
    nope, guess again ;)
     
    Anveto, Nov 2, 2014 IP
    KangBroke likes this.
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #9
    That's... weird. I must have accidentally retarded.
    Anyway, I'm guessing it might have to do with the following errors (shown via Firebug):
    Invalid App Id: Must be a number or numeric string representing the application id. all.js#xfbml=1 (line 56)
    The "fb-root" div has not been created, auto-creating all.js#xfbml=1 (line 56)
    FB.getLoginStatus() called before calling FB.init(). all.js#xfbml=1 (line 56)
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://fonts.gstatic.com/s/ptsansnarrow/v7/UyYrYy3ltEffJV9QueSi4RdbPw3QSf9R-kE0EsQUn2A.woff. This can be fixed by moving the resource to the same domain or enabling CORS.
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://fonts.gstatic.com/s/oswald/v10/-g5pDUSRgvxvOl5u-a_WHw.woff. This can be fixed by moving the resource to the same domain or enabling CORS.
    The last two shouldn't be important in this context, however I'm showing them as well.
    That is, however, pretty weird. I'm assuming maybe Firefox is slightly more forgiving, or something like that. Or that there is an issue with the script that renders it useless in Chrome, although I thought FB was on of the better ones at fixing such.
     
    PoPSiCLe, Nov 2, 2014 IP
  10. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #10
    And! I knew I wasn't that retarded.
    The Facebook-thingy works in Chrome - you just have to be logged in to Facebook first. First time around, when I tested it, I was already logged in, second time, when it didn't work, I wasn't logged in. So, then, it has to do with the scripting, not the browser. You need a way to check to see if the user is logged in already, or not, and if not, do the appropriate thing.
     
    PoPSiCLe, Nov 2, 2014 IP
    Anveto likes this.
  11. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #11
    That is crazy, Nobody mentioned IE. I logged into FB on IE and that fixed it there also.

    So if your logged into FB it works.

    But in all 3, if your logged out. Invisible. So I am still on the hunt for the fix
     
    KangBroke, Nov 2, 2014 IP
  12. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #12
    Well upon re reading your post, I created a new app. Added the app ID. That got rid of the error in firebug, but the issue still remains. Maybe it is the fb-root issue?

    UPDATE: Added the FB-Root div, the error went away, but the issue remains. So now I got all the facebook related Firebug issues resolved.
     
    Last edited: Nov 2, 2014
    KangBroke, Nov 2, 2014 IP
  13. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #13
    I'm thinking it has to do with the content available. If you're not logged in, fb doesn't know how to present the list of people who've already liked this page (it's based of your friends list foremost, the rest of FB later). There should be a way to present just the like button by itself if the user isn't logged in, you'll probably have to do a check with FB api and pull a plain like button (which will prompt for a login) if the user isn't already logged in?
     
    PoPSiCLe, Nov 2, 2014 IP
  14. #14
    Anveto, Nov 2, 2014 IP
  15. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #15
    Issue with this, I did not make the page. I have no access to the page. Its a clients page. And since the client happens to be a "head shop" which already wants a age verification pop-up on the website likely would have the age restrictions set, and likely would not be willing to change them for this
     
    KangBroke, Nov 2, 2014 IP
  16. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #16
    If they already have an age-restriction set, this shouldn't matter. Ie, all this does is show the content for everyone, not just users logged in to FB. So if there's an age restriction already set, then they should already be cleared when they see the FB-box.
     
    PoPSiCLe, Nov 3, 2014 IP
  17. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #17
    Ok, Well I will just test this out, I will re use the same code on a site I own, create a FB page and set accordingly and post the link here.
     
    KangBroke, Nov 3, 2014 IP
  18. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #18
    http://www. reneesheels .com/ Has the same version of opencart, and the same base theme. Same FB code. I own the FB page, and as you can see it is visible in all browsers when logged in or out
     
    KangBroke, Nov 3, 2014 IP
  19. KangBroke

    KangBroke Notable Member

    Messages:
    1,026
    Likes Received:
    59
    Best Answers:
    4
    Trophy Points:
    265
    #19
    And to touch on this further, when you are logged off of Facebook, and you load my clients fb page. https:// www. facebook .com/ pages/ Peace-of-Sunshine/ 99192293046

    It redirects you to the FB login homepage.

    When you click my page, https:// www. facebook .com/ pages / Renees-Heels/ 476280759137644

    It shows you the page, even if logged out
     
    KangBroke, Nov 3, 2014 IP