我使用Facebook UI发送对话框,以便我的网站用户可以与他们的朋友分享链接。该链接包括查询字符串中的Facebook用户ID。除了少数报告错误的用户外,一切正常。
为了测试这个,我考虑了一些情况:一个用于Facebook用户,可以使用发送对话而没有问题,另一个用于报告错误的用户。我使用两个相同的Fb调用,只更改了userID,如前所述,一个工作,另一个没有。
这样可行:
https:// www.facebook.com/dialog/send?access_token=XXXXXX&app_id=XXXXXX&channel=https%3A%2F%2Fs-static.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FZEbdHPQfV3x.js %3Fversion%3D41%23CB%3Df1adbecbf8%26domain%3D3Dmyworkingurl.com%26origin%3Dhttps%253A%252F%252F3Dmyworkingurl.com%252Ff524fe64%26relation%3Dparent.parent&安培; channel_url = HTTPS%3A%2F%2FS-static.ak.facebook .COM%2Fconnect%2Fxd_arbiter%2FZEbdHPQfV3x.js%3Fversion%3D41%23CB%3Df2c646879%26domain%3D3Dmyworkingurl.com%26origin%3Dhttps%253A%252F%252F3Dmyworkingurl.com%252Ff524fe64%26relation%3Dparent.parent&安培;描述= pruebafb&安培;显示= IFRAME&安培; E2E =%7B%7D&安培;链接= HTTPS%3A%2F%2F3Dmyworkingurl.com%2F%3Ffbid%3D ** WorkingFbUserId **&安培;语言环境= es_LA&安培;下一= HTTPS%3A%2F%2FS静电。 ak.facebook.com%2Fconnect%2Fxd_arbiter%2FZEbdHPQfV3x.js%3Fversion%3D41%23CB%3Df206f6e03%26domain%3D3Dmyworkingurl.com%26origin%3Dhttps%253A%252F%252F3Dmyworkingurl.com%252Ff524fe64%26relation%3Dparent%26frame%3Df34cf0b14% 26result%3D%2522xxRESULTTOK ENxx%2522&安培; SDK =乔伊&安培;要= XXXXXXXXX
这将返回HTTP错误500:
https:// www.facebook.com/dialog/send?access_token=XXXXXX&app_id=XXXXXX&channel=https%3A%2F%2Fs-static.ak.facebook.com%2Fconnect%2Fxd_arbiter%2FZEbdHPQfV3x.js %3Fversion%3D41%23CB%3Df17fb992a8%26domain%3Dmyworkingurl.com%26origin%3Dhttps%253A%252F%252F3Dmyworkingurl.com%252Ff271eb6f14%26relation%3Dparent.parent&安培; channel_url = HTTPS%3A%2F%2FS-static.ak.facebook .COM%2Fconnect%2Fxd_arbiter%2FZEbdHPQfV3x.js%3Fversion%3D41%23CB%3Df28b526904%26domain%3D3Dmyworkingurl.com%26origin%3Dhttps%253A%252F%252F3Dmyworkingurl.com%252Ff271eb6f14%26relation%3Dparent.parent&安培;描述= pruebafb&安培;显示= IFRAME&安培; E2E =%7B%7D&安培;链接= HTTPS%3A%2F%2F3Dmyworkingurl.com%2F%3Ffbid%3D ** NotWorkingFbUserId **&安培;语言环境= es_LA&安培;下一= HTTPS%3A%2F%2FS静电。 ak.facebook.com%2Fconnect%2Fxd_arbiter%2FZEbdHPQfV3x.js%3Fversion%3D41%23CB%3Df184d49ae%26domain%3D3Dmyworkingurl.com%26origin%3Dhttps%253A%252F%252F3Dmyworkingurl.com%252Ff271eb6f14%26relation%3Dparent%26frame%3Df567db08% 26result%3D%2522xxRE SULTTOKENxx%2522&安培; SDK =乔伊&安培;要= XXXXXXXXX
我使用https://developers.facebook.com/tools/debug/测试了链接网址,并且都返回了响应代码200。
您是否了解为什么只有部分用户才会发生这种情况,即使他们使用Facebook调试器返回成功的响应? 谢谢:))
答案 0 :(得分:0)
很可能你遇到了这个错误:https://developers.facebook.com/bugs/1478339672437492/
Facebook团队已经看到了这个漏洞,它已被分配给某人解决。我知道这一点,因为不幸的是它也影响了我。
由于这会影响很多开发人员,我想这不会花太长时间来修复。
要记录未来的Google搜索,这就是错误:
从今天早晨开始,FB发送对话框重定向到空白页面 不管参数如何。甚至是文档中的例子 (
FB.ui({method:'send',link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html', });
http://www.facebook.com/dialog/send? APP_ID = 123050457758183
&安培;链接= http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html &安培; REDIRECT_URI = https://www.bancsabadell.com/cs/Satellite/SabAtl/)
不再有效了。请仔细阅读,非常感谢。
上一个已知的工作日期:2014年9月22日
据Facebook称,现在应该解决了:
ØyvindSeanKinsey··Facebook平台团队
现在应该解决这个问题。谢谢你的 忍耐。 2小时前·状态已更改为固定