我生成了类似按钮,但当我点击相似页面时,它只显示错误,请帮助我编写代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login with Facebook using PHP by CodexWorld</title>
<style type="text/css">
h1 {
font-family: Arial, Helvetica, sans-serif;
color: #999999;
}
</style>
</head>
<body>
<div>
<iframe src="https://www.facebook.com/plugins/like.php?ref=http://www.facebook.com/khappay.pk?ref=ts&fref=ts" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px"></iframe>
</div>
</body>
</html>
&#13;
答案 0 :(得分:0)
您应该检查您从Facebook开发者处复制的链接。
这个应该有效:请查看fiddle
<iframe src="https://www.facebook.com/plugins/like.php?href=https://www.facebook.com/khappay.pk&width=77&layout=button_count&action=like&size=small&show_faces=false&share=false&height=21" width="77" height="21" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>