'Gram' is a slang that is an abbreviation for Instagram. The slang was made popular by the phrase ‘Do it for the gram!’