I am using the new javascript sdk and I am developing locally (i.e. not hosted server).
I was successfully able to get the access token that the js api stores in a cookie for the localhost domain. However, I do not understand:
- How fb js can set a cookie for localhost. Is this not contrary to the same policy of origin?
- If fb uses the Oauth 2.0 protocol for authentication / authorization, the only way it can get an access token is even if I didn’t provide a callback URL and there is no redirect from my main page.
Can someone demystify what is happening here under the hood?
user308808
source share