1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to Android App connect to Facebook and twitter

Discussion in 'Android Development' started by ranjitpatel, Dec 21, 2009.

  1. ranjitpatel

    ranjitpatel Lurker
    Thread Starter

    Hi All,
    i m working on Android now i have to connect the App to Facebook and twitter to publish answar of the question.so Android have any code like Iphone to connect those social side if any please help.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. itrjwyss

    itrjwyss Lurker

  3. itrjwyss

    itrjwyss Lurker

    https://github.com/facebook/facebook-android-sdk this is the link of the facebook-android-sdk, a project that is used as a library, This SDK contains three folders examples, facebook and tests, the library to use is facebook. I hope you serve.

    when you've managed to connect with facebook these two methods could be used to update your status and post your links.

    public void addStatus(String comment){
    Bundle params = new Bundle();
    params.putString("method", "status.set");
    params.putString("status", comment);
    mAsyncRunner.request(null, params, "POST", new StatusListener(this, this), null);
    }

    public void addImageLink(String url, String comment){
    Bundle params = new Bundle();
    params.putString("method", "links.post");
    params.putString("url", url);
    params.putString("comment", comment);
    mAsyncRunner.request(null, params, "POST", new LinkPostListener(this, this), null);
    }
     
Loading...
Similar Threads - Android App connect
  1. TerryJB
    Replies:
    4
    Views:
    190
  2. Cwrchris
    Replies:
    2
    Views:
    357
  3. melani78
    Replies:
    4
    Views:
    294
  4. Annabelle iris
    Replies:
    0
    Views:
    354
  5. JHolt
    Replies:
    0
    Views:
    418
  6. Fabiha 21
    Replies:
    1
    Views:
    525
  7. GamerROMInc
    Replies:
    0
    Views:
    447
  8. miniApple
    Replies:
    1
    Views:
    415
  9. AndiDroid2
    Replies:
    1
    Views:
    449
  10. denerex
    Replies:
    0
    Views:
    1,464

Share This Page

Loading...