I am trying to add the Facebook commenting system to a Squarespace website through code injection. The problem is, Facebook wants a URL address in its code and I only know how to apply a static url (the end result is every comment on the website is showing up in every blog post's comment section)
I need help trying to figure out how I can dynamically pull the individual webpage url into the below code for data-href:
<div class="fb-comments" data-href="http://www.mywebsite.com/blog" data-numposts="5"></div>
I believe Squarespace uses some form of JSON (see dev site: http://developers.squarespace.com/quick-reference/)
None of the solutions provided in this post seemed to work: Facebook comments plugin - same comments on every page
Thank you for your help!