slight modification of fb plugin