error_msg=照片标签主题无效,error_code=322
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看 Facebook 开发者页面,照片/标签部分:
链接
look at facebook developers page, the seccion photos/tag:
The link
这对我有用:
您可以使用“tag_uid”代替“tag_text”键,并提供有效的用户ID作为NSString。
This is working for me:
Instead of "tag_text" key you may use "tag_uid" and supply a valid user ID as a NSString.
许多 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.