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

Fix for #123: Callback functions now work correctly without a callback #126

Closed
wants to merge 2 commits into from

Conversation

jamesfer
Copy link

Fixes #123
Previously, if you called one of the login() or getLoginStatus() etc. without a callback, a promise was not returned and therefore you could not use the promise api. Now, if a callback function could not be found in the args array, the response function is simply concatenated onto the end of the other arguments.

WavedClover497 and others added 2 commits January 19, 2016 03:06
When no callback is given to the login function, the new one
is prepended to the argument list so that it can be correctly
passed to the native Facebook API.
@jamesfer jamesfer closed this Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login Promise doesn't work
1 participant