Involver Developer Network : facebook_comments
This page last changed on May 16, 2012 by jed.wheeler@involver.com.
OverviewAllows you to add a facebook comments module to your content_items. Unlike ?content_comments, this tag inserts native facebook comments that will show up in in the stream for friends of the poster. Because facebook_comments is generated directly by Facebook instead of the Involver platform and comes wrapped in an iframe, you cannot use CSS to style them directly. Facebook does this intentionally to keep the look of their comments interface consistent across tabs and the open web. Caching ConsiderationsThere are no caching considerations. Attributes
Examples{% rss_feed %} {% for item in rss_feed.feed_items %} <h3>{{item.title}}</h3> <div class="comments-wrapper"> {% facebook_comments item %} </div> {% endfor %} {% endrss_feed %} Known IssuesSML tabs automatically include metatags to assign comment moderation powers to page admins. Unfortunately, Facebook has a known bug with comment moderation on Facebook. Their system fails to apply moderation powers to the users specified in the meta-tags of an iFrame's header for content which has been imported from a third-party site. Instead, Facebook relies on the meta-tags of the page that the remote content was pulled from. In practice, this means that because we don't have the ability to change the meta-tags on the you-tube page that hosts your video (for example) there is no way to give you permissions to moderate comments on that video. If you are importing content from an RSS feed where you do have access to the source code and can add the appropriate permissions metatags to that remote resource those permissions will be inherited by posts from that source which are pulled in via our RSS feed. FAQ
If you are wrapping the facebook_comment tag in a container that is set to display none, the comments will not render. To fix this, ensure the following Javascript function is called at the time the comment is displayed: FB.XFBML.parse(); Documentation for this function is here: http://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/ |
![]() |
Document generated by Confluence on Feb 12, 2013 09:09 |