Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
- .putString("og:type", "does this value mandatory??")
- .putString("og:title", "My page name")
- .putString("og:url", "My shared deep link")
- .build();
- // Create an action
- ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
- .setActionType("does this value mandatory??")
- .putObject("my object", object)
- .build();
- ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
- .setPreviewPropertyName("what is the proper value here??")
- .setAction(action)
- .build();
- com.facebook.share.widget.ShareDialog.show(getActivity(), content);
- implementation 'com.facebook.android:facebook-share:[4,5)'
- implementation 'com.facebook.android:facebook-applinks:[4,5)'
Add Comment
Please, Sign In to add comment