A
A
Astreya132013-07-12 10:32:22
Facebook
Astreya13, 2013-07-12 10:32:22

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

1 answer(s)
A
Alexander Kouznetsov, 2013-07-12
@unconnected

Foolish question.
Is sandbox mode disabled?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question