Answer the question
In order to leave comments, you need to log in
The application does not ask for authorization and is not added to the page?
Tell me, please, what could be the problem
here is the application apps.facebook.com/someemos/
Everything works, shares, but is not added to user pages.
function loginFB()
{
FB.login(onLoginFB, {scope: 'publish_stream'});
}
function onLoginFB(response)
{
if (response.authResponse) {
//FB.api('/me', function(response) {});
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
//alert("onLogin: uid=" + uid + " token=" + accessToken);
} else {
//alert("onLogin: NOT LOGIN");
}
}
function authFB()
{
var url = ' www.facebook.com/dialog/oauth/? ';
url += 'client_id=' + APPLICATION_ID;
url += '&redirect_uri=' + " apps.facebook.com/ " + "someemos";
url += '&state=' + "redirect_uri";
url += '&scope=' + "publish_stream";
top.location.href = url;
}
what's wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question