实施 Facebook 愿望清单教程应用程序不拥有操作类型错误
我正在使用 Android 版 Facebook Wishlist 应用程序。当我尝试将自定义对象添加到 Facebook 图表时,API 返回以下错误:
{
"error: {
"type": "OAuthExeption",
"message":"(#100)
Application does not own
230752723668296 action type"
}
}
我无法找到有关此特定错误的任何特定文档。有没有 Facebook 开发人员可以帮助我解释这一点。
我还应该提到,我已经有一个运行此应用程序且没有错误的工作示例(我正在尝试复制它,以便我可以对其进行调整而不必担心丢失工作)。我尝试过更改操作的名称,但这没有什么区别。下面是 Android 代码片段,它将项目添加到 Facebook 时间线。然而,这只是整个难题的一小部分,因为该项目分为三个方面(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);
}
I am working through the Facebook Wishlist app for Android. When I attempt to add my custom object to the Facebook graph the API returns the following error:
{
"error: {
"type": "OAuthExeption",
"message":"(#100)
Application does not own
230752723668296 action type"
}
}
I haven't been able to find any specific documentation on this particular error. Are there any Facebook developers out there who may be able to help me interpret this.
I should also mention that I already have a working example of this app running without errors (I am trying to duplicate it so I can tweak it with out fear of losing work). I have tried changing the name of the Action but this makes no difference. Below is the snippet of the Android code where it adds the item to the Facebook time line. This is however a small piece of the over all puzzle as there are three sides to this project (Facebook, My Server, and 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);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“我还应该提到,我已经有一个运行此应用程序且没有错误的工作示例(我正在尝试复制它,以便我可以调整它而不必担心丢失工作)”
该操作特定于应用程序 ID。当您复制代码时,您是否使用了相同的应用程序 ID 还是创建了一个新应用程序 ID?如果您创建了新的应用程序 ID,则需要为新应用程序注册操作,就像对第一个应用程序所做的那样。
"I should also mention that I already have a working example of this app running without errors (I am trying to duplicate it so I can tweak it with out fear of losing work)"
That action is specific to an app id. When you made the duplicate of your code, did you use the same app id or create a new one? If you created a new app id, you will need to register actions for the new app just like you did with the first app.
当使用 Graph API Explorer 工具将操作发布到我的应用程序的时间线时,我遇到此错误(#100 应用程序不拥有操作类型)。以下是我在遇到此错误时输入的值以及如何解决该问题的简要摘要。仅供参考,我的应用程序称为“recipestogo”。我为应用程序定义的操作称为“cook”,关联的对象称为“recipe”。
我在 Open Graph API 中输入的值:
从下拉列表中选择“发布”
https://graph.facebook.com/me/recipestogo:cook?recipe=https://www.mywebsite.com/index.html
遇到错误:
100 个应用程序不拥有操作类型
解决方案:
在 API Graph Explorer 工具的右侧顶部,“应用程序”旁边有一个下拉菜单。它默认设置为 Graph API Explorer。将其从 Graph API Explorer 更改为 RecipesToGo 解决了该问题,并且我能够成功发布到我的应用程序的时间线。
I encountererd this error (#100 Application does not own action type) when using the Graph API Explorer tool to post an action to my app's timeline. Here is a brief summary of the values I had entered when encountering this error and how I resolved the issue. Fyi, my app is called 'recipestogo'. The action I defined for my app is called 'cook', and the associated object is called 'recipe'.
Values I entered into Open Graph API:
Chose 'Post' from the drop-down
https://graph.facebook.com/me/recipestogo:cook?recipe=https://www.mywebsite.com/index.html
Error encountered:
100 Application does not own action type
Resolution:
At the top, right of the API Graph Explorer tool, there is a drop-down next to Application. It had been set by default to Graph API Explorer. Changing this from Graph API Explorer to RecipesToGo resolved the issue and I was able to successfully post to my app's timeline.