I've been having this annoying issue for couple of days. If I do this:
https://graph.facebook.com/endpoint?key=value&access_token={appId}|{appSecret}
It displays this error:
{ "error": { "message": "(#803) Some of the aliases you requested do not exist: endpoint", "type": "OAuthException", "code": 803, "fbtrace_id": "CSTbks4jPbc" } }
And from the script:
var appSec = $('#appSec').val();
var appId = $('#appId').val();
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s);
js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
window.fbAsyncInit = function () {
FB.init({
appId: appId,
xfbml: true,
cookie: true,
status: true,
version: 'v2.5'
});
FB.Event.subscribe("xfbml.render", changeSettings)
};
var changeSettings = function (token) {
console.log("aa");
yourToken = token;
FB.api('/' + appId, 'POST', {
"access_token": token,
"canvas_url": "https://apps.facebook.com/servis-racunara",
"secure_canvas_url": "https://servis-racinara.com/inventory_manager_a/"
},
function (response) {
if (response && !response.error) {
}
console.log("bb");
console.log(response);
}
);
}
Pops out this error in console:
And I really don't know what to do or try anymore. Is it due to some app settings, and if it is, what is proper way to configure app on facebook? If it's not that, what else am I missing? Please help I'm stuck. UPDATE: Note that I've already considered and tried similar questions like this: trying to get app access token and this: Getting App Access Token for facebook app?