There are a number of lectures, posting that we have done over the years on this topic. However the questions of osteoporosis medications and their benefits and risks comes up often.
The links are attached:
Here is an updated list of medication that I had previously published. I made some clarification to explain how the medications work. There are different classes of medications and the detail of the action and soda effects were described earlier at a blog post.
The table is obtained from https://www.nof.org site.