在开发模式下,从Facebook的角度查看API调用日志非常有用。这样的错误消息将变得可理解:
{
"error": {
"message": "Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.",
"type": "OAuthException",
"code": 191,
"fbtrace_id": "Dt33dWtIpZr"
}
}
请注意,这并不表示Facebook抱怨的URL。客户端可以记录此信息是正确的,但是客户端库可能正在弄乱事情,并且没有提供记录其发送内容的方式。