Android Facebook API example using FBRocket

This post is posted as per the request of many comments on Android JTwitter Example.

Now let proceed ahead with Facebook using FBrocket.

Using FB rocket we can update our facebook profile status from mobile application.

Before we get into coding we got to make sure that we do the following steps

  1. Import the FBrocket JAR file to the eclipse project and add it to JAR libraries. Download here ( )
  2. Make sure you have created an application in!/developers/createapp.php
  3. Note down application name and API key, do not reveal API key to anybody.

Android How to check network status(Both Wifi and Mobile 3G)

There is always a need for a developer to check the network status of the network connected to the phone. Here are some example code to check the network status .

You need the following permission to get status

[sourcecode language="xml"]
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>


Android Post Status to Twitter using Jtwitter- Example

In android, we can able to post a status to twitter by using jtwitter. Its very simple to post a status in twitter. For that we need jtwitter.jar. you can download the jwitter.jar from here
Post Status in Twitter Example :-
Create a new android project,
Add the below code in your AndroidManifest.xml for internet permission

[sourcecode language="xml"]
<uses-permission android:name="android.permission.INTERNET"/>

Syndicate content