update advanced_fb.rb file with examples