Firebase invites - facebook and twitter options

Firebase invites me to work with email and SMS just fine. I don't know when it comes to sharing via Facebook or Twitter. What are my options for sharing data with facebook invitations via Firebase? I cannot find any information on this anywhere, other than that Facebook offers its own api prompt. I'm trying to just use Firebase if possible, though, so I'm just trying to figure out how to set up the "shared sheet" that I see in different variations of the online links (without a lot of information associated with those links). I can't tell if the general sheet is just a list of actions that I need to handle in my own way, with just the email and sms option handled by Google, and I handle the rest of the parameters using a different apis.

In my current implementation, I am using a deep link that the invitation provides and stores the id of some data that I want a particular user to access. Then save this data to firebase database. But what is the correct way to share with facebook users? Is it just to use the facebook api and expose it somehow in my own "personalized sheet"? Where can I find documentation on the shared sheet?

Thanks for clarifying any of this if you can!

Cheers, Mike

+3


source to share


1 answer


My answer may not be perfect as I'm looking for an alternative, but you can manually add different social media resources manually. What I wanted to do was send a deep link using the sharing feature already implemented by Google, but with no luck.



// Regular share I want to use this and send deep link :(
                    Intent myShare = new Intent(Intent.ACTION_SEND);
                    myShare.setType("text/plain");
                    String shareBody= "Messsage here";
                    String sub = "Title";
                    myShare.putExtra(Intent.EXTRA_SUBJECT, sub);
                    myShare.putExtra(Intent.EXTRA_TEXT, shareBody);
                    startActivity(Intent.createChooser(myShare, "Share using"));

/FACEBOOK SHARE
                    /*ShareLinkContent content = new ShareLinkContent.Builder()
                            .setContentUrl(Uri.parse("deeplinkhere"))
                            .build();
                    ShareDialog shareDialog = new ShareDialog(HomepageActivity.this);
                    shareDialog.show(content);*/

                // Google Invites
               /* Intent inviteIntent = new AppInviteInvitation.IntentBuilder(getString(R.string.invitation_title))
                        .setMessage(getString(R.string.invitation_message))
                        .setDeepLink(Uri.parse(getString(R.string.invitation_deep_link)))
                        .setCustomImage(Uri.parse(getString(R.string.invitation_custom_image)))// the image address on server for invite by email.
                        .setCallToActionText(getString(R.string.invitation_cta))
                        .build();
                startActivityForResult(inviteIntent, REQUEST_INVITE);*/
                //startActivity(new Intent(HomepageActivity.this,InviteActivity.class));

      

0


source







All Articles