douming4359 2013-02-19 07:51
浏览 46
已采纳

检查用户是否点击了Facebook赞按钮(多个按钮)

I've looked for some solutions to this site and couple of other sites, still I saw some solutions yet I can't be able to apply it into my problem.

So would be glad if you help me guys.

I have this piece of code that generates facebook like button

Take note that $fb_link[$i] is the URL of the facebook fan page.

  for ($i = 0; $i < $ln_arr_linkdesc; $i++) { //Output Tickets
  echo '
    <div class="tick_cont">
      <div class="flike_cont">
        <fb:like href="'. $fb_link[$i] .'" send="false" layout="button_count" width="250" show_faces="true" font="lucida grande"></fb:like>
      </div>
      <div class="ftitle_cont">'. $fb_desc[$i] .'</div>
    </div>
    <div style="clear:both;"></div>
  ';
  }

And this what it is looked like.

enter image description here

What my problem is, I can't validate if the user has liked the button(s), don't have any clue for it.

My Desire output should be

enter image description here

When the user clicked the usergamestv and Php Academy it appends to the container below that the user clicked/liked the corresponding page.

I already put onclick="validate_like();" on button though, it doesn't work. Any solution for this stuff?

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序