dsgoj7457 2013-11-03 22:22
浏览 50
已采纳

将Disqus评论与Android集成

I am trying to integrate Disqus comments to my Android application, and I am following this tutorial:

http://globeotter.com/blog/disqus-android-code/

I didn't understand well part about disqus_identifier. As you can see from the code below I use this code to acces showcomments.php on my server.

webDisqus.loadUrl("http://balkanandroid.com/showcomments.php?disqus_id="+identifer);

Where identifer is part of url behind top level domain name, something like this:

http://balkanandroid.com/graficka-evolucija-nexus-telefona/ And I use /graficka-evolucija-nexus-telefona/ as disqus identifer.

And I get this error message:

We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Here is server side php code>

  • 写回答

1条回答 默认 最新

  • doushui5587 2013-11-04 23:43
    关注

    Based on the example code provided, this is a pretty easy fix. Just change this line:

    var disqus_shortname = '<balkanandroid>';

    to this:

    var disqus_shortname = 'balkanandroid';

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大