I have successfully applied Single-Sign-On in my iOS 4.3 application. Now I want to post a link to the wall of facebook users, so that when his friends, who also have the application, click on the link, they should be redirected to my application. The way I interpret http://developers.facebook.com/docs/mobile/ios/build/#deeplink is that one of the delegate functions
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url, (pre iOS 4.2) - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation , (iOS 4.2+)
and that the shared link can be parsed using the [target_link] key. However, I cannot get this to work. I have successfully posted a link to the user feed using:
NSDictionary* params=[[NSDictionary alloc] initWithObjectsAndKeys:myFacebookAppID,@"app_id", linkToPost,@"link",nil]; [_facebook dialog:@"feed" andParams:params andDelegate:self]
The message appears in my feed, but when I click on the link, none of the delegate methods mentioned above are called. Should I do something special with the link, I tried adding "fb: myFacebookAppID: //" before the link, but this does not work at all. I didn’t understand something?
My application does not work in the AppStore yet, and there is a field on developers.facebook.com asking me to enter my AppStore ID, can this be a problem? If so, is there a workaround? I want to check how this works before posting my application to the AppStore.
Thank you for your help!
pIkEL source share