if(msg == null) {
facebook.postLink(attachmentsUrl);
}else {
facebook.postLink(attachmentsUrl, msg);
}
}else if(activityModel.getAttachmentsType() != null
&& (activityModel.getAttachmentsType().getCategory().equals(Constants.GOOGLE_ACTIVITY_ATTACHMENTS_TYPE_PHOTO)
|| activityModel.getAttachmentsType().getCategory().equals(Constants.GOOGLE_ACTIVITY_ATTACHMENTS_TYPE_ALBUM))