titanium-android-facebook icon indicating copy to clipboard operation
titanium-android-facebook copied to clipboard

Event "shareCompleted" not behaving correctly

Open luisestudioalfa opened this issue 9 years ago • 0 comments

Hello,

I'm having a problem when i try to share to facebook and use the callback to confirm it.

Titanium sdk : 4.1.0.GA Facebook Module version : 4.0.5 OSX Yosemite 10.10.1

When the event "shareCompleted" is called after facebook has posted, returns

{"type":"shareCompleted","source":{"loggedIn":false,"invocationAPIs":[{"namespace":"Facebook","api":"createActivityWorker"},{"namespace":"Facebook","api":"createLikeButton"},{"namespace":"Facebook","api":"createLoginButton"}],"accessToken":"","expirationDate":null,"canPresentShareDialog":true,"propertiesDefined":true,"bubbleParent":true,"uid":null,"permissions":[],"_events":{"shareCompleted":{}},"apiName":"Ti.Module","canPresentOpenGraphActionDialog":true},"cancelled":true,"success":false,"bubbles":false,"cancelBubble":false}

And then i cancel the post before sharing it it returns the same:

{"type":"shareCompleted","source":{"loggedIn":false,"invocationAPIs":[{"namespace":"Facebook","api":"createActivityWorker"},{"namespace":"Facebook","api":"createLikeButton"},{"namespace":"Facebook","api":"createLoginButton"}],"accessToken":"","expirationDate":null,"canPresentShareDialog":true,"propertiesDefined":true,"bubbleParent":true,"uid":null,"permissions":[],"_events":{"shareCompleted":{}},"apiName":"Ti.Module","canPresentOpenGraphActionDialog":true},"cancelled":true,"success":false,"bubbles":false,"cancelBubble":false}

In the first case ( when i post to facebook) i can see the post but returns cancelled:true ( success should be true?), and when i cancel the post before posting, it's not published and the event returns cancelled:true ( this works as expected....)

I'm doing something wrong? or do i need to configure more permissions on facebook developer? or is anything else needed? Do you need more info ?

Thanks in advance, Luis.

luisestudioalfa avatar Jan 18 '16 10:01 luisestudioalfa