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

[MOD-2122] presentWebShareDialog arguments do not work as documented #15

Merged
merged 1 commit into from
May 27, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 8 additions & 6 deletions android/src/facebook/TiFacebookModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,17 @@ public void onComplete(Bundle values,
})
.build();
} else {
String url = (String) args.get("url");
String imageUrl = (String) args.get("imageUrl");
String title = (String) args.get("title");
String link = (String) args.get("link");
String picture = (String) args.get("picture");
String name = (String) args.get("name");
String description = (String) args.get("description");
String caption = (String) args.get("caption");
Bundle params = new Bundle();
params.putString("name", title);
params.putString("name", name);
params.putString("description", description);
params.putString("link", url);
params.putString("picture", imageUrl);
params.putString("link", link);
params.putString("picture", picture);
params.putString("caption", caption);
feedDialog = (new WebDialog.FeedDialogBuilder(TiApplication.getInstance().getCurrentActivity(),
Session.getActiveSession(), params))
.setOnCompleteListener(new OnCompleteListener() {
Expand Down