I'm sharing a FBSDKShareOpenGraphObject
with an FBSDKShareOpenGraphAction
of type "video.watches" using the Facebook's SDK. Everything goes fine, the post appears on the Facebook feed but if I tap on the application's name I get an error. This is the code I'm using for sharing:
FBSDKShareOpenGraphObject *object = [FBSDKShareOpenGraphObject objectWithProperties:@{@"og:type": @"video.other",
@"og:title": @"TV Show",
@"og:image": @"http://cdn1.tnwcdn.com/wp-content/blogs.dir/1/files/2013/02/tv-set.jpg",
@"og:url": show_url}];
FBSDKShareOpenGraphAction *action = [[FBSDKShareOpenGraphAction alloc] init];
[action setActionType:@"video.watches"];
[action setObject:object forKey:@"video"];
[action setNumber:@(7200000) forKey:@"expires_in"];
FBSDKShareOpenGraphContent *content = [[FBSDKShareOpenGraphContent alloc] init];
[content setPreviewPropertyName:@"video"];
[content setAction:action];
_shareDialog = [[FBSDKShareDialog alloc] init];
_shareDialog.fromViewController = [self.delegate collectionViewControllerForCell:self];
_shareDialog.shareContent = content;
_shareDialog.delegate = self;
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fbauth2://"]]){
_shareDialog.mode = FBSDKShareDialogModeNative;
} else {
_shareDialog.mode = FBSDKShareDialogModeAutomatic;
}
[_shareDialog show];
The result:
But when I tap on TV Channel (the boxed one) I get this error:
I'd like to open the native application when I tap on that text, in the same way Instagram opens when you tap on it's name in the "X posted a photo on Instagram" on a photo. I configured the Bundle ID and the iPhone Store ID in application's settings, on developer.facebook.com, but no success. What I am missing?