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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -