asp.net mvc - facebook c# sdk login problem -
recently decided switch 5.0.3 verison of facebook c# sdk library. 1 of modifications had change script in login view :
fb.init({ appid: '<%: facebookcontext.current.appid %>', status: true, cookie: true, xfbml: true });
which facebook.facebooksettings.current.appid
, used work fine. compilation error
s0103: name 'facebookcontext' not exist in current context
my webconfig set correctly think, in mvcwebsite sample included in library. ideas can wrong?
you need register facebook namespace in page or via web.config.
or manually type full namespace:
'<%: facebook.facebookcontext.current.appid %>'
Comments
Post a Comment