objective c - iOS Facebook SDK access token -
i experimenting ios app utilize rest api (asp.net mvc web api) , want users able logon/register using either:
- username , password (default)
- facebook authentication
i have setup ios facebook sdk , users can logon/register using it.
when user register facebook, access token should used bind rest api account? akfaccesstoken or fbsdkaccesstoken?
haven´t found tutorials ios app , asp.net mvc web api combined. if knows can find 1 lot.
if going @ problem wrong please correct me, still trying wrap head around it.
i mention in details best practice know. server have facebook app id (special id app given facebook when register new app). send fbsdkaccesstoken server server encrypt fbsdkaccesstoken app id key , return result named 'accesskey'.
you save accesskey , use relation server on.
this way, no 1 can know userfbid since u encrypted , didnt share facebook app id since should secret.
hope helps!
Comments
Post a Comment