+ Reply to Thread
Results 1 to 2 of 2

Thread: Share in facebook

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    28

    Share in facebook

    I want the user to click on my gadget and facebook window pop up that has a textbox to share his
    status in facebook.
    and i need my website to appear along with the status message.

    How can i do that instead of launching the facebook app ?

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    27
    You can use that intent
    Code:
    Intent i = new Intent(Intent.ACTION_SEND);
    i.setType("text/plain");
    // include a link
    i.putExtra(Intent.EXTRA_TEXT, "http://www.yourwebsite.com/");
    startActivity(Intent.createChooser(i, "Share with"));

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts