我突然遇到了 FB.ui() 的问题,因为它显示了一个供用户使用的提要对话框,以便将我的画布应用程序中的内容发布到他们的 facebook 提要上。这一直有效到大约一周前,我们还没有为此部署任何新代码。
FB.ui({
"method":"feed",
"name":"Your Horoscope for Today",
"link":"http://apps.facebook.com/dhbdayscopetest/",
"app_id":"213524052014025",
"picture":"http://iota.tarot.com/fb/bday/images/signs/capricorn.png",
"caption":"Capricorn",
"description":"The time for romantic ideals and impulsive desires is passing quickly. In order to experience the best part of the day, you must do the work, make the...",
"actions":[{
"name":"Read More",
"link":"http://apps.facebook.com/dhbdayscopetest/"
}]
}, function(){ /* react */ });
我突然收到这样的回复:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
我已经看到其他问题的答案说要确保站点 url/画布 url/应用程序域都匹配,但它们确实匹配并且它们都设置正确。
我可以向 FB.ui() 调用抛出一个 redirect_uri,它可以在此弹出窗口中将内容发布到用户的提要,但随后弹出窗口会在发布后继续并在微小的弹出窗口中加载我的画布页面。在此开始发生之前,对话框将在成功发布后关闭。这是我想要的行为,我应该做些什么来得到它?