I want to put in may application a button which will give a possibility for the user to input some message and post it on his wall. My question is, how to implement this scenario:
- User enters message and clicks Share button.
- If Native FaceBook app is present on the device, it is fired in order to post this message, or to login first and give permissions.
- If Native FaceBook app is NOT present on the device, web browser is fired and redirected to facebook page in order to login and post a message. (Or popup with WebView instead of web browser app)
this is the sample project link https://github.com/facebook/facebook-android-sdk
and the tutorial link is : http://blog.doityourselfandroid.com/2011/02/28/30-minute-guide-integrating-facebook-android-application/