Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share a link to facebook without facebook app installed?

I had shared link to facebook using share dialog successfully.

https://developers.facebook.com/docs/android/share-dialog/

But it requires facebook app installed. So, How can i share to facebook which out facebook application install? Thanks

like image 751
hoangmeo325 Avatar asked Mar 22 '23 07:03

hoangmeo325


1 Answers

if (!facebookAppFound) {
  String sharerUrl = "https://www.facebook.com/sharer/sharer.php?u=" + urlToShare;
  intent = new Intent(Intent.ACTION_VIEW, Uri.parse(sharerUrl));
}
like image 69
mbpatel Avatar answered Apr 28 '23 13:04

mbpatel