I want to add a Facebook like button in my website.
If I use the following code like button is working but on log in the error message : “An error occurred with Facebook Platform Opt In. Please try again later” is displayed.
<html>
<head>
<title>My Great Web page</title>
</head>
<body>
<iframe src="http://www.facebook.com/plugins/like.php?href=guiuiu"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
</body>
</html>
Why this is happening. Do I need to create a fb API for successful login?
you must provide a valid url in order to work with the iframe method.
Anyway – you better use the xfmbl implementation of the like button
in order to do that you will have to open application (on http://developers.facebook.com/apps)
then paste this code after the
<body>tag of your page (put the APP ID where it belongs)add this namespace to your
htmlnode:and put this instead of the iframe you used
for any further information you may refer here:
http://developers.facebook.com/docs/reference/plugins/like/