The actress was one of 26 people arrested, sheriff's officials said

Receive the latest entertainment-news updates in your inbox

Actress Shailene Woodley was peacefully protesting the Dakota Access oil pipeline in North Dakota Monday when she was arrested for trespassing, E! News confirmed.

The "Fault in Our Stars" actress captured the whole incident on Facebook Live, recording everything so people could see what was happening. "They grabbed me by my jacket and said that I was not allowed to continue," she told her viewers, describing an incident not seen on camera. "And they had giant guns and batons and zip ties and they're not letting me go."

When Woodley tries to ask the cop a question, the cop is heard responding, "We can't talk right here, but you're going to be placed under arrest for criminal trespassing."

She then tries to ask why only she is being arrested, and the cop informs her it's because she has been identified. "Alright I'm being arrested," she continued. "Because I was trespassing like everyone. As soon as you guys asked me to leave, I l left. She was down there, everybody was down there. I'm being arrested. I was down there with everybody else. I don't know what's going on? As soon as they came I left... it's because I'm well known. It's because I have 40,000 people watching."

Woodley added, "So everybody knows...we were going to our vehicle which they had all surrounded and waiting for me with giant guns and a giant truck behind them just so they could arrest me. I hope you're watching mainstream media."

E! News has reached out to her rep for comment. The Morton County Sheriff confirmed to E! News that Woodley was arrested for allegedly criminal trespassing, along with 26 other people.