Android and Facebook share intent

前端 未结 12 2127
闹比i
闹比i 2020-11-22 13:02

I\'m developing an Android app and am interested to know how you can update the app user\'s status from within the app using Android\'s share intents.

Having looked

12条回答
  •  粉色の甜心
    2020-11-22 13:52

    Here is something I did which open Facebook App with Link

    shareIntent = new Intent(Intent.ACTION_SEND);
    shareIntent.setComponent(new ComponentName("com.facebook.katana",
                        "com.facebook.katana.activity.composer.ImplicitShareIntentHandler"));
    
    shareIntent.setType("text/plain");
    shareIntent.putExtra(Intent.EXTRA_TEXT,  videoUrl);
    

提交回复
热议问题