I have the following code
$(function(){
$.ajaxSetup({ cache: true });
$.getScript('//connect.facebook.net/en_US/sdk.js', function(){
FB.init({
appId: '{user-id}_{app-id}',
version: 'v2.8'
});
FB.api(
"/{post-id}/",
function (response) {
console.log( response.error );
}
);
});
});
Where I have the correct values for {app-id} and {post-id} as documented here https://developers.facebook.com/docs/graph-api/reference/v2.8/post/
Yet I am getting this error
code : 12
fbtrace_id : "GUk/UD49xEO"
message : "(#12) singular statuses API is deprecated for versions v2.4 and higher"
type : "OAuthException"
Why am I getting this? Do I need an access token?
This is not the same as How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?
Because that doesn't work. I've tried prefixing the post-id and I get the same error. Did you test this before you marked it as a duplicate?