I am trying to create posts to facebook from my app using the fb share button. I want this post to link back to the app using applinks. I don't understand how to add data to the facebook url so it knows where to direct the app to when the link is clicked.
FBSDKShareLinkContent * content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"https://fb.me/123456789"];
FBSDKShareButton * button = [[FBSDKShareButton alloc] init];
button.shareContent = content;
[self.view addSubview:button];
This works but any query I try to add to the fb url breaks and no longer links to the app. For example:
content.contentURL = [NSURL URLWithString:@"https://fb.me/123456789?my_view=news"];
Is this he wrong approach? I also tried using the json encoding and al_applink_data but any change to the original url makes the post link to the image url sent and not the app link.