
I'mwritingapluginforWordpressthatrequiredtheFacebookPHPSDK.I'verunintowhatIthinkisacommonproblemjudgingfromthenumberofresultsI'vefounddatingbacktooverayearago.Unfortunately,Ihavebeenunabletofindasolution.I'musingWordpress3.8andFacebookPHPSDKMastertakenfromgithubsothisshouldbethelatestversion.I'veactuallyrunthissamecodeoutsideofWordpressanditsuccessfullyranwithnoerrors.So...

<?php/***@file*Abasictemplateforentityformentities**Availablevariables:*-$content:Anarrayoffielditems.Userender($content)toprintthemall,or*printasubsetsuchasrender($content['field_example']).Use*hide($content['field_example'])totemporarilysuppresstheprintingofa*givenelement.*-$title:Thenameoftheentityform*-$url:ThestandardURLforviewingaentityformentity*-$page:TRUEifthisisthema...