Results 1 to 17 of 17
  1. #1
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default Http to Https - Social Count

    Hi,

    I moved my site to https and of course lost all social count (facebook likes and such).

    I was trying to solve it with "og:url" but since the change was done with let’s encrypt and it doesn't go through htaccess, then this solution doesn't work.

    on FB sharing debugger getting this message:

    • Inferred Property
      The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

    • Missing Properties
      The following required properties are missing: og:image, fb:app_id


    Any idea how to solve this?
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  2. #2
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

    Default

    Quote Originally Posted by MMM View Post
    Hi,

    I moved my site to https and of course lost all social count (facebook likes and such).

    I was trying to solve it with "og:url" but since the change was done with let’s encrypt and it doesn't go through htaccess, then this solution doesn't work.

    on FB sharing debugger getting this message:

    • Inferred Property
      The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
    • Missing Properties
      The following required properties are missing: og:image, fb:app_id


    Any idea how to solve this?
    Surely forcing SSL in htaccess will work ..
    I use lets encrypt on all my sites

    2 possible solutions..

    RewriteEngine On
    RewriteCond %{ENV:HTTPS} !=on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


    or


    RewriteEngine On
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
    RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]

    I think the 1st example should work in your situation

  3. #3
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

  4. The Following User Says Thank You to WBM For This Useful Post:

    MMM (6 August 2018)

  5. #4
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default

    Yes, but i think because the https is forced not through htaccess or maybe because it's "forced" the exception for FB doesn't like the one here (https://www.mightyminnow.com/2014/05...ttp-and-https/) doesn't work.

    Basically, i see this on https site: <link rel="canonical" href="https://www.slotmachinesonline.co/" /> instead of http://

    Tried with Yoast OG feature. With Addtoany js script. Nothing works for some reason.
    Maybe also need to change something in cloudflare https settings to allow that.
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  6. #5
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

    Default

    ok
    first of all correct this in the header file
    <meta property="og:url" content="http://www.slotmachinesonline.co/" />

    Its giving conflicting info
    Also set this manually ..
    js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";

    to

    js.src = "https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";


    Can you also give me an example url of where I could find a facebook like box ( sorry I'm too lazy to look my pc slow as hell today )

  7. #6
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

  8. #7
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

    Default

    That basically checks for the FB bot and redirects ..

    Nice & Simple

  9. #8
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default

    Quote Originally Posted by WinSpins View Post
    First, thanks a lot!

    It seems that since the change wasn't done with htaccess - i am not able or can't find how, to exclude FB robot from the https. It needs to somehow access http version but not sure how.
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  10. #9
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

    Default

    Have you placed this in the header.php ?

    <?php
    if(preg_match('/facebookexternalhit/i',$_SERVER['HTTP_USER_AGENT'])) {

    echo '<link rel="canonical" href="http://MYDOMAIN.COM">'; // Forces the robot to use non ssl
    } else {
    echo '<link rel="canonical" href="https://MYDOMAIN.com">';
    }
    ?>

    No reason that shouldnt work
    Last edited by WBM; 6 August 2018 at 2:17 pm. Reason: added ? by top opeining tag

  11. #10
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default

    I did now. But i think this let's encrypt settings are forcing everything to https. not sure.
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  12. #11
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

    Default

    want to email me your header.php file ?

    i'll pm my email now

  13. The Following User Says Thank You to WBM For This Useful Post:

    MMM (6 August 2018)

  14. #12
    PROFRBcom's Avatar
    PROFRBcom is offline Private Member
    Join Date
    April 2013
    Posts
    2,173
    Thanks
    1,511
    Thanked 1,243 Times in 808 Posts

    Default

    Losing all our social counts sucked. Still haven't recovered most of them. Shame too, had a couple pages with 3 figures of organic likes.

    If you fail at getting everything back, you can always run a few little contests requiring FB likes directed at your main money pages to earn back that "social proof".

    GL

  15. #13
    WBM's Avatar
    WBM
    WBM is offline Public Member
    Join Date
    May 2017
    Posts
    410
    Thanks
    39
    Thanked 97 Times in 70 Posts

    Default

    Have you tried adding this to the header too

    <meta property="fb:app_id" content="Your APP ID">

  16. #14
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default

    Quote Originally Posted by WinSpins View Post
    want to email me your header.php file ?

    i'll pm my email now
    Emailed. Thanks a lot!
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  17. #15
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default

    I would say this is where the problem and it doesn't let to add exception to fb crawler in htaccess.

    Name:  lets.jpg
Views: 253
Size:  34.7 KB

    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  18. #16
    Join Date
    November 2005
    Posts
    4,507
    Blog Entries
    1
    Thanks
    1,920
    Thanked 2,216 Times in 1,278 Posts

    Default

    Not having a dig at the OP or anyone else for that matter...

    However, and as a heads up, IF you intend to make a living out of being a full-time affiliate, then this is why learning some basic programming skills is imperative, and also learning to use cPanel too. NB - WordPress & its plugins are great, however they don't fix every issue.

    Hence, knowing how to fix simple stuff like this, will save you time, money and headaches

  19. #17
    MMM
    MMM is online now Private Member
    Join Date
    October 2014
    Posts
    1,760
    Thanks
    464
    Thanked 718 Times in 501 Posts

    Default

    Quote Originally Posted by AussieDave View Post
    Not having a dig at the OP or anyone else for that matter...

    However, and as a heads up, IF you intend to make a living out of being a full-time affiliate, then this is why learning some basic programming skills is imperative, and also learning to use cPanel too. NB - WordPress & its plugins are great, however they don't fix every issue.

    Hence, knowing how to fix simple stuff like this, will save you time, money and headaches
    Hey, you are 100% correct. I do learn things as i go (4 years ago it took me a week to place "hello world" on server.
    In this particular case, I think the issue is with the way the redirect is done on server level - so all the fixes i am trying to implement do not work. It seems that to solve this i need to stop the force redirect and start from scratch.

    P.S. I think it's the most gentle comment i've seen from you, ever
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

Posting Permissions

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