I'm trying to put a facebook 'like button' on each post of a blog. The code was pasted correctly, but i'm getting this error:
Refused to display 'https://www.facebook.com/undefined/plugins/like.php?action=recommend&app_id…%2F&layout=button_count&locale=pt_BR&sdk=joey&share=false&show_faces=false' in a frame because it set 'X-Frame-Options' to 'DENY'.
There is a 'undefined' after facebook.com/, and i don't know why.
Any idea how to solve this issue?
This is unfortunately a bug in how the JS SDK does implicit initialization (the init params in the url), so you're doing everything correct.
A fix is being prepared, but for now, you can use /en_US/all.js
instead of /en_US/sdk.js
.