Facebook Like button working on localhost but not on production on Django
I'm using XFBML to display Like buttons for my Post objects on my Django app. On localhost, the Like buttons work just fine. It posts what I Like to my FB profile just fine. But on production when I开发者_Python百科 click the Like button it briefly displays the number 1
and then the number disappears. No errors in Chrome Dev Tool.
You can see it on production here
Thank you!
It seems you app is not well configured. Here is the answer I got in firebug when clicking and watching the network traffic :
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":true,"error_info":{"brief":"App ID does not match domain","full":"The app ID specified within the \"fb:app_id\" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your app to be a prefix of http:\/\/www.matilah.com\/20\/."}}}
With the interesting parts being
brief: App ID does not match domain
full: The app ID specified within the "fb:app_id" meta tag is not allowed on this domain. You must setup the Connect Base Domains for your app to be a prefix of http://www.matilah.com/20/
What did you enter in the settings of your app at http://www.facebook.com/developers/
Especially the Web Site > Site URL
and Web Site > Site Domain
It should be http://www.matilah.com
and matilah.com
精彩评论