像点击页面上的错误
问题描述:
我生成像按钮,但是当我点击像页面时,它只显示写出的错误亲切地帮我我的代码。像点击页面上的错误
<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>
答
您应该检查你是从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>
使用检查发电机,以创建一个正确的代码:https://developers.facebook.com/docs/plugins/like-button – CBroe
我已经使用了相同的代码生成器的链接也尝试不同的方式,但不能成功 – sarfaraz
不,代码生成器不会拼错参数名称。 – CBroe