The social media company is teaming up with recipe website Allrecipes to introduce an ingredient scanning feature to its photo-sharing app.