asp.net mvc 3 - Facebook API Access Token Server Side -
i pretty new facebook api , using javascript sdk of work. logging in with:
fb.getloginstatus(function (response) { if (response.status === 'connected') { document.location.href = '<%: resolveurl("~/account") %>/authenticatefacebook?accesstoken=' + encodeuri(response.authresponse.accesstoken) + '&userid=' + encodeuri(response.authresponse.userid) + '&returnurl=' + $('#returnurl').val(); } }
this sending result of login response authenticate page. working fine. later on when want use accesstoken
on server stuck.
i trying use facebook c# sdk basic stuff. requires accesstoken
question how can access servers side, or store somewhere?
the site mvc3 basic asp.net membership service underneath. or guidance on appreciated.
what have far excellent. way c# sdk developers want it.
to store server-side, can place session. bear in mind access token hour or so. want grab new token client-side refresh 1 on server.
you have few options more dropping session:
- session variable (as mentioned)
- app cache
- memcached
- database
Comments
Post a Comment