在Facebook上添加当前位置发布video

我需要使用place密钥在Fac​​ebook中发布place 。 如图所示

起初我以为我不得不把经纬度的一个物体放到一个称为键的位置。

然后我意识到你必须在一个place发送关键的place_id

pipe理得到与此最接近的place_id

 NSMutableDictionary *params2 = [NSMutableDictionary dictionaryWithCapacity:4L]; [params2 setObject:@"37.416382,-122.152659" forKey:@"center"]; //Hard code coordinates for test [params2 setObject:@"place" forKey:@"type"]; [params2 setObject:@"1000" forKey:@"distance"]; [[[FBSDKGraphRequest alloc] initWithGraphPath:@"/search" parameters:params2 HTTPMethod:@"GET"] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { NSLog(@"RESPONSE!!! /search"); NSLog(@"result %@",result); NSLog(@"error %@",error); }]; 

所以,当我试图发送一个职位使用/me/videos的位置,出现一个错误。

(#3) Application does not have the capability to make this API call.

在这里我的代码。

 NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:4L]; [params setObject:videoData forKey:[NSString stringWithFormat:@"%@.MOV",title]]; [params setObject:title forKey:@"title"]; [params setObject:desc forKey:@"description"]; [params setObject:@"110503255682430" forKey:@"place"];// hard code for test NSString *privacyString = @"EVERYONE"; if (privacy.length > 0) privacyString = privacy; NSDictionary *privacyDict = [[NSDictionary alloc] initWithObjectsAndKeys: privacyString, @"value", nil]; [params setObject:[Utils objectToJsonString:privacyDict] forKey:@"privacy"]; [[[FBSDKGraphRequest alloc] initWithGraphPath:@"/me/videos" parameters:params HTTPMethod:@"POST"] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { NSLog(@"RESPONSE!!! /me/videos"); NSLog(@"result %@",result); NSLog(@"error %@",error); if (!error) { //video posted [[[UIAlertView alloc] initWithTitle:@"Success" message:@"Your clip was posted!" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles: nil] show]; } else { [[[UIAlertView alloc] initWithTitle:@"Error!" message:[error localizedDescription] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles: nil] show]; } }]; 

谢谢,任何帮助将不胜感激

编辑:

它似乎添加一个地方,需要做一个更新后,创build一个videohttps://developers.facebook.com/docs/graph-api/reference/v2.3/video#Updating

但是,虽然我可以更新标题,说明等等,但不可能添加一个地方

编辑2:

我需要添加该权限user_videos
现在的反应是成功的,但我没有看到反映在video文章中的位置