我按照本教程:https://developers.facebook.com/docs/opengraph/tutorial/多次,总是得到相同的结果。Facebook开放图形对象发布到时间线
我总是得到这个错误:(#15)这个方法必须用应用程序access_token调用。我尝试添加应用程序access_token,但又遇到另一个错误,那就是我只能查询信息而不发帖。 (我检查了隐私设置,应用程序被允许发布到时间轴上。)当我使用facebook调试工具时,我确实制作了这些对象并没有发现任何错误。
我也看过这部分:
Why am I getting "This method must be called with an app access_token" error when publishing an action?
- Uncheck the "Require app access token to write" checkbox on the configuration page (hidden under the Advanced section) for your Open Graph action type in the Developer App.
在应用程序配置我找不到这一点,我有一种感觉,这是旧的。我使用,使后的代码是完全一样的教程:
function postCook()
{
FB.api(
'/me/[YOUR_APP_NAMESPACE]:cook?recipe=http://fbwerks.com:8000/zhen/cookie.html',
'post',
function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Cook was successful! Action ID: ' + response.id);
}
});
}
[我没有做,当然适当的修改:)任何帮助,将不胜感激。
你设法定期发布链接或帖子? – 2012-04-18 17:27:51
我还没有尝试过,但我得到了它与伯顿的建议。 – Yuriy 2012-04-18 19:25:15