public static void shareToMessenger(Activity activity,int requestCode,ShareToMessengerParams shareToMessengerParams){
  if (!MessengerUtils.hasMessengerInstalled(activity)) {
    MessengerUtils.openMessengerInPlayStore(activity);
    return;
  }
  Set<Integer> allAvailableVersions=getAllAvailableProtocolVersions(activity);
  if (allAvailableVersions.contains(PROTOCOL_VERSION_20150314)) {
    shareToMessenger20150314(activity,requestCode,shareToMessengerParams);
  }
 else {
    MessengerUtils.openMessengerInPlayStore(activity);
  }
}

public static void shareToMessenger ( Activity activity , int requestCode , ShareToMessengerParams shareToMessengerParams ) { if ( ! MessengerUtils . hasMessengerInstalled ( activity ) ) { MessengerUtils . openMessengerInPlayStore ( activity ) ; return ; } Set < Integer > allAvailableVersions = getAllAvailableProtocolVersions ( activity ) ; if ( allAvailableVersions . contains ( PROTOCOL_VERSION_20150314 ) ) { shareToMessenger20150314 ( activity , requestCode , shareToMessengerParams ) ; } else { MessengerUtils . openMessengerInPlayStore ( activity ) ; } }
starts an intent to share a piece of media on messenger using the messenger content platform .
