I need to add share functionality in my app with UIActivityViewController but I have done a lot of research and found that e.g in IOS7 and IOS8 if user has not logined or ad
You can implement your own UIActivityType and ask the user to login to the desired app (Facebook, Twitter, etc.) before posting to them but you would need to build the whole activity to handle the communication. You might be able to extract the code from OWAActivityViewController and re-use it.