I am facing problems in implementing facebook sdk 3.0 to my android app.I have read tons of tutorials and samples .But cannot work it out.
I have also read documentation on facebook developers.
But how should i log out of facebook account and how to send a post to the facebook account which is login.
I have setup the facebook sdk to my android app perfectly. I am facing problem with further code and steps.Can anyone share the code with me regarding login, logout, sending a post to facebook account.
I am stuck to this step for very very long time..
Any help will be appreciated.Thanks in advance.
I'm not sure if you had read and follow this tutorial but it is basically what you need for SDK3.0. It is well structured and easy to follow tutorial.
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/. Just a personal note, just don't skip any step and pay attention to Step 4. Run the Samples, where you need to create Key hash. Hope that helps.
with thise line you can share with other apps installed on the device
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT,"body text");
those links may help you with the share.
Share Text on Facebook from Android App via ACTION_SEND
http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
Related
what I need to do is to allow my facebook application to share data on user wall but without asking the user of his credentials but using the session that he is already open in his installed facebook application, I have searched a lot and I didn't find anything to help me, please anyone can help please
please you will find the example on that link
https://app.box.com/s/va06jtp1e6nqet6qbdjr
how can I allow users to share the data(text data) they have saved in android app on their facebook wall through a share button within the app. I am not sure if I should use facebook android sdk device or share-intent. I will be thankful if someone could provide me with some information on this or tell me about any tutorials related to this.
Thanks
You can not share the text on facebook wall using intent in android. For to achieve this you need to use facebook sdk. Using intent you can share the text on email, twitter and can share the photo on facebook.
I used intent earlier to send text on facebook its was not working earlier.
As per the Facebook's Platform Policies, We cannot pre-fill the share dialog using Intent.EXTRA_TEXT. It is usually thought to be a bug, but as per a Bug Report filed here and also, here, Facebook clearly mentions that this is not the case (it's not a bug).
I found that we cannot add a caption to a photo we are uploading using Intents. The only way we can do it, is integrating the Facebook SDK in your App then photo with text caption will be shared on facebook wall.
To get started for facebbok sdk in android:
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
I have to share a link to facebook, twitter and gmail. I have implemented facebook integration using Facebook Sdk in my Android app, thus I am able to share my link to facebook. But if I am following the same procedure for twitter, facing lots of problem to integrate it in my app. Please help to solve this problem. Also I am not getting how to integrate same for gmail. Any ideas are welcome.
Thanks in advance
Only for Gmail: one intent to start Gmail.
If you're using i.e. the Actionbar, you should think about the ShareAction Intent. Here is an example:
http://android-developers.blogspot.de/2012/02/share-with-intents.html
If the user has twitter/ facebook intalled on the device it is possible to open them and share them by using the share intent. Other Apps are also included. You ll face other probably other problems if the user is not using the offical facebook and twitter apps. I recommend you the shareintent.
In Android project trying to have a button to post on wall in facebook by user. When that button is clicked need to check whether user is already logged in using other facebook app if so i need to open Post On Wall Dialog with prefilled data to be shared. Please direct me in this to achieve.
I tried following this tutorial http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/
but after asking for user credentials in a webview the page navigates to main activity instead of opening the post on wall dialog. Thanks in advance.
Have you tried using the Facebook SDK website? Try looking at the below two links on the Facebook SDK website:
How to log in:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/
How to publish to a feed:
http://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/
There is also an example application provided with the Facebook SDK 3.0 which can be loaded into eclpise and onto a device for you to better understand how it works (need to add your own APP key of course). There is also the Scrumptious Tutorial on the Facebook SDK site that can run you through everything.
Found here:
http://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/
How to share data in Facebook through android application. is that any Intent call used to share our data in Facebook. I searched in google but i dint get any proper guidance. if anyone did this issue pls guide me.
for share data on facebook you need to use facebook API
for facebook API follow this link n go step by step