Using the new facebook graph api, ajax calls returns null (empty)

后端 未结 4 648
南旧
南旧 2020-12-16 05:58

Im trying out the new graph api for facebook. I\'m trying to fetch some data using jquery ajax. This is a sample of my javascript code, very basic...

var mU         


        
4条回答
  •  天涯浪人
    2020-12-16 06:38

    You can't do cross-domain AJAX requests like that due to the same-origin policy. Instead, use Facebook's JavaScript SDK, which is based on a script tag.

提交回复
热议问题