I use SLComposeViewController to post to Twitter and Facebook. I have the same code for twitter and facebook, but the URL does not appear in the Twitter message. How to fix it?

Twitter Code -
socialController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [socialController setInitialText:@"Testing: This is the app link!"]; [socialController addImage:[UIImage imageNamed:@"image.jpg"]]; [socialController addURL:[NSURL URLWithString:@"http://www.google.com"]]; [self presentViewController:socialController animated:YES completion:nil];
Facebook code -
socialController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [socialController setInitialText:@"Testing: This is the app link!"]; [socialController addImage:[UIImage imageNamed:@"image.jpg"]]; [socialController addURL:[NSURL URLWithString:@"http://www.google.com"]]; [self presentViewController:socialController animated:YES completion:nil];
ios iphone facebook twitter slcomposeviewcontroller
rohan_vg
source share