1. Download our Official Android App: Forums for Android!

Apps 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
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Dec 21, 2009

    Dec 21, 2009
    8
    0
    5
    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.
     

    Advertisement

  2. itrjwyss

    itrjwyss Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Nov 4, 2011

    Nov 4, 2011
    3
    0
    5
  3. itrjwyss

    itrjwyss Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Nov 4, 2011

    Nov 4, 2011
    3
    0
    5
    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);
    }
     

Share This Page

Loading...