how facebook does cross domain ajax call?

后端 未结 3 1236
说谎
说谎 2021-01-14 00:45

I am looking forward to create a javascript API that contains most of the functions that facebook Javascript API provides.

FB.api
FB.init
FB.logout
FB.getLog         


        
3条回答
  •  青春惊慌失措
    2021-01-14 01:31

    Take a look at https://github.com/facebook/facebook-js-sdk/blob/deprecated/src/core/xd.js

    They use a combination of rpc workarounds (with a relay file), Flash Local Connection and postMessage, whichever is supported by the browser.

提交回复
热议问题