numberOfComments api broken?
If you reference to the implementation code for comment counts, it does not seem to work.
so for example if I use:
<div class="gc-counter" data-url="http://example.com/url-with-gc"></div>
it tries to do the query at:
https://graphcomment.com/api/pub/numberOfComments?website=startup-truth-staging&url=http://example.com/url-with-gc
But the https://graphcomment.com/api/pub/numberOfComments returns a 400 bad request for pages that do exist at that URL:
On the other hand the API used in a thread at the top to show the count seems to work just fine:
1
-
Commentaire officiel
Hi,
Since the url seems to have changed in the meantime with you and since our script cannot find the thread by url, you can add "data-uid" with your own "uid" to find the thread,
if it's on WordPress, you need to inject WordPress date-uid = Post_ID in the html.
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire