error_msg=照片标签主题无效,error_code=322

发布于 2024-10-29 05:16:25 字数 623 浏览 2 评论 0原文

在 iPhone 上使用 fbconnect。

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               pid, @"pid",
                               FACEBOOK_PAGE_ID, @"tag_uid",
                               @"50.0", @"x",
                               @"50.0", @"y",
                               nil];

[self.theFacebook requestWithMethodName:@"photos.addTag"
                              andParams:params
                          andHttpMethod:@"POST"
                            andDelegate:self];

我的 FACEBOOK_PAGE_ID 真的错了吗?既然如此,我怎样才能找到合适的呢?

Using fbconnect on iPhone.

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               pid, @"pid",
                               FACEBOOK_PAGE_ID, @"tag_uid",
                               @"50.0", @"x",
                               @"50.0", @"y",
                               nil];

[self.theFacebook requestWithMethodName:@"photos.addTag"
                              andParams:params
                          andHttpMethod:@"POST"
                            andDelegate:self];

Is my FACEBOOK_PAGE_ID really wrong? In that case, how can I find the right one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ゝ偶尔ゞ 2024-11-05 05:16:25

看看 Facebook 开发者页面,照片/标签部分:

“目前,您无法使用此 API 标记照片中的页面”

链接

look at facebook developers page, the seccion photos/tag:

"Currently, you cannot tag a Page in a photo using this API"

The link

辞别 2024-11-05 05:16:25

这对我有用:

- (void)tagPhotoWithPhotID:(NSString *)photoID {

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               photoID, @"pid",
                               @"Test Tag", @"tag_text",
                               @"50.0", @"x",
                               @"50.0", @"y",
                               nil];

[self.facebook requestWithMethodName:@"photos.addTag"
                              andParams:params
                          andHttpMethod:@"POST"
                            andDelegate:self];
}

您可以使用“tag_uid”代替“tag_text”键,并提供有效的用户ID作为NSString。

This is working for me:

- (void)tagPhotoWithPhotID:(NSString *)photoID {

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               photoID, @"pid",
                               @"Test Tag", @"tag_text",
                               @"50.0", @"x",
                               @"50.0", @"y",
                               nil];

[self.facebook requestWithMethodName:@"photos.addTag"
                              andParams:params
                          andHttpMethod:@"POST"
                            andDelegate:self];
}

Instead of "tag_text" key you may use "tag_uid" and supply a valid user ID as a NSString.

最好是你 2024-11-05 05:16:25

许多 Facebook 页面不是有效的标记主题。目前,只能标记主要类别“人员”或“品牌”的页面。具体来说,无法标记本地企业。不幸的是,API 中只显示了子类别,并且存在重叠;一些子类别同时属于本地企业和品牌。

对于像区域连锁店这样不明确的组合,这会产生奇怪的结果,这些组合不是真正的品牌,但也不是真正的可进行地理标记的本地企业。

Many Facebook pages are not valid tagging subjects. At this time, only pages with the primary category Person or Brand can be tagged. Specifically, Local Business cannot be tagged. Unfortunately, only the subcategory is revealed in the API and there is overlap; some subcategories are in both Local Business and Brand.

The produces strange results for ambiguous combinations like regional chains, which aren't truly a brand, but aren't truly a geo-taggable local business either.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文