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

Event "shareCompleted" not behaving correctly #19

Open
luisestudioalfa opened this issue Jan 18, 2016 · 0 comments
Open

Event "shareCompleted" not behaving correctly #19

luisestudioalfa opened this issue Jan 18, 2016 · 0 comments

Comments

@luisestudioalfa
Copy link

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 luisestudioalfa changed the title Event "shareCompleted" Event "shareCompleted" not behaving correctly Jan 18, 2016
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

No branches or pull requests

1 participant