Skip to content

Share crashing on Android #443

@FizixTiramu

Description

@FizixTiramu

I'm attempting to call the FB ShareDialogue and getting an error, I'm following the docs and everything appears to be in order.

`
fb.presentShareDialog({
link: 'https://www.example.com/',
title: 'TITLE',
description: 'DESC,
picture: 'http://www.appcelerator.com/wp-content/uploads/scale_triangle1.png'
});

fb.addEventListener('shareCompleted', function (e) {
if (e.success) {
alert('Share completed');
} else if (e.cancelled) {
alert('Share cancelled');
} else {
alert('error ' + e.errorDesciption + '. code: ' + e.code);
}
});
`

Returns error:
[ERROR] �� �TiExceptionHandler: (main) [20775,35048] fb.presentShareDialog({

[ERROR] �� �TiExceptionHandler: ^

[ERROR] �� �TiExceptionHandler: Error: Parameter specified as non-null is null: method com.facebook.internal.FacebookDialogBase.registerCallback, parameter callbackManager

[ERROR] �� �TiExceptionHandler: at View.eval (eval at Module._compile (/app.js:727:10), :1543:8)

[ERROR] �� �TiExceptionHandler: at View.value (ti:/kroll.js:1430:27)

[ERROR] �� �TiExceptionHandler: at View.value (ti:/kroll.js:1477:25)

[ERROR] �� �TiExceptionHandler: at Label.value (ti:/kroll.js:1471:27)

[ERROR] �� �TiExceptionHandler:

[ERROR] �� �TiExceptionHandler: com.facebook.internal.FacebookDialogBase.registerCallback(Unknown Source:2)

[ERROR] �� �TiExceptionHandler: facebook.TiFacebookModule.presentShareDialog(TiFacebookModule.java:735)

[ERROR] �� �TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)

[ERROR] �� �TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)

[ERROR] �� �TiExceptionHandler: org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:985)

[ERROR] �� �TiExceptionHandler: org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:819)

[ERROR] �� �TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.fireSyncEvent(TiViewProxy.java:1051)

[ERROR] �� �TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.fireSyncEvent(TiViewProxy.java:1057)

[ERROR] �� �TiExceptionHandler: org.appcelerator.kroll.KrollProxy.fireSyncEventToParent(KrollProxy.java:863)

[ERROR] �� �TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)

[ERROR] �� �V8Exception: Exception occurred at undefined:1543: Uncaught Error: Parameter specified as non-null is null: method com.facebook.internal.FacebookDialogBase.registerCallback, parameter callbackManager

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions