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

后端 未结 2 472
终归单人心
终归单人心 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: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.

提交回复
热议问题