开发者

error_msg=Invalid photo tag subject, error_code=322

开发者 https://www.devze.com 2023-02-21 01:47 出处:网络
Using fbconnect on iPhone. NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:

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 开发者_C百科case, how can I find the right one?


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

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

The link


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消