title: Why my message is shared twice in viber, I have used UIActivityViewController
body: <p>I have used UIActivityViewController for sharing my message in Facebook, Twitter, Viber etc....It seems the message is send twice in Viber but for others are ok. Can u please help me?? I have used the code given below...</p>
  
  <pre><code>-(void)shareContent {
      NSString * message;
      NSArray * itemsArray = [NSArray new] ;
      if ([shareFlag isEqualToString:@"Friend"]) {
          message = @"Hi, I am using Amar Sticker, an amazing app to download &amp; share cool Bangla Stickers. Click here and get it for FREE: http://goo.gl/qK7HRw";
          NSURL *appLink = [NSURL URLWithString:@"http://goo.gl/qK7HRw"];
          itemsArray = @[message, appLink];
          shareFlag = @"";
      }
  
      UIActivityViewController * avc = [[UIActivityViewController alloc] initWithActivityItems:itemsArray applicationActivities:nil];
  
      [avc setExcludedActivityTypes:@[UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard,UIActivityTypeSaveToCameraRoll]];
  
      [avc setCompletionHandler:^(NSString *activityType, BOOL completed) {
  
      }];
      [self presentViewController:avc animated:YES completion:nil];
  
  }
  </code></pre>