Dec 3, 2007 at 8:23 AM
When using the CanvasFBMLMasterPage - what class should the content pages extend? The User's Guide word doc says just to add the content pages as normal..

How do you access the FBService from a content page? I notice CanvasFBMLMasterPage has a FBService property. In my content page I'm casting Master to CanvasFBMLMasterPage and accessing FBService via that. i.e:

CanvasFBMLMasterPage masterPage = (CanvasFBMLMasterPage)this.Master;

Am I going about this right? Could be worth adding a ContentPage class...

Nov 25, 2008 at 2:42 AM
Just add <MasterType VirtualPath="YourMasterPageFiles.master" /> to the top of your content pages. Then you can access the Master property and it'll be automatically cast to your specialized class (along with any properties you put there, for example I have a UserName property that returns API.users.getInfo().first_name;).