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.
Related
I could not find a specific solution. please give me step by step solution so that i can integrate the deep linking of Facebook, Gmail, Twitter and Whatsapp. i have applied the library of google play services and facebook sdk and also unable deep linking in my account but i did not find the code for make my app link. please give me solution. Thank you
You can deeplink if the application provides their SDK. fortunately facebook, gmail, and twitter provides SDK, but whats app not providing any sdk. so you can deep link all other applicaiton you listed out with your app, but not WhhatsApp.
This is a partial answer (only for FB)
According to your requirement you need to do extra works to ensure deep linking.
For FB:
Create a fb app with share permission ( you need to get approval so that user can share from your app using fb sdk )
While sharing you must share your website which contains meta data for Android/iOS device (check android/iOS developer page for that meta data)
Now if user clicks on the share content using mobile they will be taken directly to the app. If they click from the desktop device, you can redirect them to html version or to google play site or whatever page you like.
I suspect Google and Twitter has similar mechanism.
Hope this helps.
I've seen some games and apps having a feature that enables you to like the app Facebook page inside the app. (or sharing the app website link)
I've read similar questions about sharing on Facebook by intent and I'm enable to share a text on Facebook now. but my question is how can I create like button and how can I get feedback that a user has liked or shared my app on Facebook?
Please help me in details because I have very little knowledge about intents and Facebook sdk.
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/
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 am doing a android application.From my App I have to share a page when user clicks a button.So please provide me some sample code or suggest me some useful tutorial.Thanks in advance.
This link here helps you to navigate to your default facebook app installed in your device.
Share Text on Facebook from Android App via ACTION_SEND
http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent