Toggle bolts can be used in drywall, but people often find their strength severely lacking compared to other bolts. The best way to secure something to drywall is to use screws or nails that are long enough to reach into a stud.