Facebook has discovered a bug that gave third-party apps access to the photos of up to seven million users.

The glitch was active for 12 days between 13 and 25 September.

It was found in software that used Facebook login to give third-party apps permission to access a user’s images.

The social media giant said the bug meant access was granted to a broader set of photos than intended, including ones uploaded to the site but never posted.

They added that up to 6.8 million accounts were exposed.

Facebook’s engineering director Tomer Bar said: “When someone gives permission for an app to access their photos on Facebook, we usually only grant the app access to photos people share on their timeline.

“In this case, the bug potentially gave developers access to other photos, such as those shared on Marketplace or Facebook Stories.

“The bug also impacted photos that people uploaded to Facebook but chose not to post.

“For example, if someone uploads a photo to Facebook but doesn’t finish posting it – maybe because they’ve lost reception or walked into a meeting – we store a copy of that photo so the person has it when they come back to the app to complete their post.”

The tech firm said the bug affected up to 1,500 apps built by 876 developers.

Get more stories like this on Twitter & Facebook

AD: To get thousands of free final year project topics and other project materials sorted by subject to help with your research [click here]