我按照本教程: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