0

我对 Facebook 有疑问。我想进行 fql 查询以获取页面上的喜欢计数,例如http://graph.facebook.com/?ids=http://www.mysite.com/index.php?data1=1&data2=2。但是测试时,我把它放在我的浏览器中,我得到了错误的点赞数,json 输出作为 id 参数 {..."id": "http://www.mysite.com/index.php?data1 =1"...},丢弃data2参数。为什么流程不对?(知道 mysite 也是一个 facebook 应用程序,这个页面有 og metas)

4

1 回答 1

1

您忘记在查询中编码 `& 字符:

http://graph.facebook.com/?ids=http://www.mysite.com/index.php?data1=1%26data2=2 按预期工作

于 2012-12-19T18:51:28.787 回答