Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18906] Facebook: Problems in 'presentWebShareDialog'

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDone
Resolution Date2015-07-01T05:31:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, facebook, sdk-4.0.0RC3
ReporterGiulio De Giorgio
AssigneeAshraf Abu
Created2015-05-12T07:40:05.000+0000
Updated2017-03-16T22:54:21.000+0000

Description

The first problem is that documentation say that is not necessary to do login flow before the use of presentWebShareDialog, but if i don't do that the app crash with the stack error: 'session cannot be null' in android log cat. The second problem occurs when i try to use presentWebShareDialog after login: the facebook share popup seems to not get the passed params: link, name, caption, picture and description !Screenshot_fb.png|thumbnail!

Attachments

FileDateSize
example.crash.js2015-05-13T07:09:29.000+00001713
example.voidshare.js2015-05-13T07:09:22.000+00002037
Screenshot_fb.png2015-05-12T07:30:08.000+000070049

Comments

  1. Radamantis Torres-Lechuga 2015-05-12

    [~norx85] can you please attach a test case?
  2. Giulio De Giorgio 2015-05-13

    I attached two simple example apps of the two cases
  3. Giulio De Giorgio 2015-05-13

    To reproduce the problem you need to not have facebook app installed on the device
  4. Giulio De Giorgio 2015-06-09

    Any news on this bug? The issue remains in sdk 4.0.0GA but now it's also impossible to share after login flow. I need a fix on this or i can't publish my app. Thanks
  5. kosso 2015-06-15

    Have you tried the 4.0.4+ version of the Facebook module? And have you changed the way the facebook app is set up in tiapp.xml ? Also provided the right info on the Facebook Developer app settings page? I had to update to this version to get everything working after the Facebook API changes. https://github.com/appcelerator-modules/ti.facebook (I had to build it locally myself for it to work, for some reason though) It's also a good point you made, that the documentation should explain a bit better how the different login flows work when/if you have the FB app installed (on iOS or Android). (or also connected in the main phone settings.)
  6. Ashraf Abu 2015-06-16

    [~norx85] Hi there. -I tried your code and everything seems to be working.- I used the 4.0.5 version of the Facebook module. You can get it here: https://github.com/appcelerator-modules/ti.facebook/releases -Let me know if this works for you.- New note:- I managed to get the bug for the first case. The second case seems to be okay.
  7. Ashraf Abu 2015-06-16

    [~kosso] You had to locally build the module? Is the module not working correctly from the release page?
  8. Giulio De Giorgio 2015-06-16

    Ok i'll give a try to this version
  9. kosso 2015-06-16

  10. Ashraf Abu 2015-06-29

    For the first problem, login flow is required and in this case, the documentation is wrong. I've done this PR https://github.com/appcelerator-modules/ti.facebook/pull/24 to reflect that. For the second issue, the 4.0.5 version of the Facebook module handles that and solves that problem. You can get it here: https://github.com/appcelerator-modules/ti.facebook/releases If nothing else is required, I think I can resolve this ticket with respect to the original problems of this ticket.
  11. Ashraf Abu 2015-07-01

    Resolving this as done.
  12. Lee Morris 2017-03-16

    Closing ticket as done.

JSON Source