我正在使用适用于 Android 的 Facebook Wishlist 应用程序。当我尝试将自定义对象添加到 Facebook 图表时,API 返回以下错误:
{
"error: {
"type": "OAuthExeption",
"message":"(#100)
Application does not own
230752723668296 action type"
}
}
我无法找到有关此特定错误的任何特定文档。是否有任何 Facebook 开发人员可以帮助我解释这一点。
我还应该提到,我已经有一个运行没有错误的应用程序的工作示例(我正在尝试复制它,以便我可以调整它而不必担心失去工作)。我尝试更改操作的名称,但这没有什么区别。下面是将项目添加到 Facebook 时间线的 Android 代码片段。然而,这只是整个难题的一小部分,因为这个项目有三个方面(Facebook、My Server 和 Android)
public void addToTimeline() {
dialog = ProgressDialog.show(Wishlist.this, "",getString(R.string.adding_to_timeline), true, true);
/*
* Create Product URL
*/
String productURL = HOST_SERVER_URL + HOST_PRODUCT_URI;
Bundle productParams = new Bundle();
productParams.putString("name", mProductName);
productParams.putString("image", mProductImageName);
productURL = productURL + "?" + Util.encodeUrl(productParams);
Bundle wishlistParams = new Bundle();
if(mPlacesAvailable) {
try {
wishlistParams.putString("place", mPlacesJSONArray.getJSONObject(mPlacesListSpinner.getSelectedItemPosition()).getString("id"));
} catch (JSONException e) {}
}
wishlistParams.putString("wishlist", WISHLIST_OBJECTS_URL[mWishlistSpinner.getSelectedItemPosition()]);
wishlistParams.putString("product", productURL);
wishlistParams.putString("image", mProductImageURL);
//TODO
//put the app's namespace and 'add_to' action here
Utility.mAsyncRunner.request("me/wishlisteight:adding_to", wishlistParams, "POST", new addToTimelineListener(), null);
}