code for fb events
merged