Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wall post button don't post on first click. #4

Open
sashkooo opened this issue Mar 26, 2015 · 3 comments
Open

Wall post button don't post on first click. #4

sashkooo opened this issue Mar 26, 2015 · 3 comments

Comments

@sashkooo
Copy link

Wall post button don't post on first click, only ask permissions.
Also get error in output:
[trace] error {"errorCode":-101,"vkErrorCode":5}

On next clicks it works fine.

@kavolorn
Copy link
Owner

There is an error handler in the code that should handle this situation:

private function errorHandler(error:Object, request:Object)
{
    trace('error', JSON.stringify(error));

    if (error.errorCode == VKError.VK_API_ERROR && error.vkErrorCode == 5)
    {
        _statusBar.text = "User is logged out.";
        VK.getInstance().authorize(SCOPE, true, false, false);
    }
}

I never saw that it is not working. If authorization is required then operation is canceled and after authorization you have to click once again. Do you see this behaviour?

You can have your own pull of requests and retry request if needed.

@sashkooo
Copy link
Author

Yes, I see, I just report that wall post button in the demo not working as well, it have do post after log in. It is bug of the demo, not extension.

@kavolorn
Copy link
Owner

Not a bug, but could be better :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants