Facebook Like - Won't keep track of Likes after browser refresh

后端 未结 2 444
终归单人心
终归单人心 2021-01-27 09:56

I\'m implementing Facebook\'s \"Like\" option in one of my websites as a voting tool. Users will be able to vote on a specific team by Liking the team\'s individual page. I have

相关标签:
2条回答
  • 2021-01-27 10:23

    I've noticed this happen on my sites before too. There's usually a missing or incorrect open graph tag that's required. It's really strange how it works anyway on some pages but not others. I highly recommend using the debugger tool too. It points out what is wrong.

    0 讨论(0)
  • 2021-01-27 10:31

    Ah, I've got it working with a few resources.

    First, I used Facebook's Debugger to check my open graph tags and make sure they were valid. I noticed that my Like button required an admin ID. Also, on the Debugger page you can actually demo your Like button and it will display an error message if necessary.

    I received the message:

    "The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users."

    What I noticed was that I had my fb:admins tag mixed up with og:admins. I switched the letters up and all was fixed!

    However, I'm still not sure why a few of my pages allowed the Like button to work prior to the fix.

    0 讨论(0)
提交回复
热议问题