Developing a web application using Facebook API JavaScript SDK I'm trying to store some application settings on the Facebook, so it would be possible to load the settings even if the user has changed a browser.
There are data.getCookies
and data.setCookies
methods described on the Facebook API documentation but both of them don't work. They return
{
error_code: "3",
error_msg: "Unknown method"
}
Here is the request I'm sending:
FB.api(
{
method: 'data.getCookies'
},
function(response) {
console.log( response )
}
);
All other methods from the documentation work fine, for instance:
FB.api(
{
method: 'friends.get'
},
function(response) {
console.log( response )
}
);
returns an array with uid
s.
Are data.*
methods deprecated? Is there a workaround?