Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

thanks John Tantalo

  • Loading branch information...
commit 1346bf9b7f9feec464465cabd506bdd1f9f54f42 1 parent 96b802b
Benjamin Golub authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  blog.py
  2. +1 −0  templates/modules/entry.html
View
3  blog.py
@@ -340,7 +340,8 @@ def render(self, entry, show_comments=False):
def javascript_files(self):
if self.show_comments:
- return ["http://connect.facebook.net/en_US/all.js#xfbml=1"]
+ return ["http://connect.facebook.net/en_US/all.js#appId=" +
+ self.handler.application.settings["fb_app_id"] + "&xfbml=1"]
return None
View
1  templates/modules/entry.html
@@ -21,6 +21,7 @@
{% end %}
<div class="comments" id="comments">
{% if show_comments %}
+ <div id="fb-root"></div>
<fb:comments href="{{ 'http://' + request.host + '/' + entry.slug }}"></fb:comments>
{% else %}
<a href="/{{ entry.slug }}#comments">{{ _("Comments") }}</a>
Please sign in to comment.
Something went wrong with that request. Please try again.