I want to know how to integrate google plus in my app. Currently I am developing news application, in which I would like to have a news sharing option for things like facebook, twitter, gmail, and google plus. How can I achieve this functionality?
Sharing the Android way doesn't involve integrating services one by one. That would require you to update your app any time a new service launches that you might want to integrate with. Instead you use the ACTION_SEND Intent.
This blog post gives a good intro to its use: http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent
When you implement sharing this way your users can share using any app they have installed on their device. If they install a new app that can accept sharing intents your app will immediately be able to integrate with it with no changes from you. The Google+ app accepts these sharing intents.
You can easily share to Google+ with ShareCompat, you only need the support library for that.
http://googleplusplatform.blogspot.co.at/2012/05/sharing-rich-content-from-your-android.html
Related
I want to make a custom share menu on which apps stuff can be shared and add some custom options.
I don't like the standard createchooser because apparently nobody knows how to customize this crap: Android - ShareActionProvider Share Menu add particular option
So what would be the code to send text to facebook or any other particular app?
You'd have to implement SDKs provided by each app that you want to share with.
E.g. here's Facebook's Sharing SDK
In this way, you would limit which applications users can share with, to those that you've integrated. This isn't what you want, you should continue using Android's ShareActionProvider as that flips the dependency around, to where third-party apps implement sharing, and you just talk to the Android Sharing API.
I am currently sharing a link in my Android app by creating a chooser with an ACTION_SEND-Intent. I now want to add deep linking to the posts which already works with links from our iOS app into the Android app but not from links shared with the Android app. I think the reason is that by using an Intent, the app that actually posts the share is the Facebook app and not my own app.
So I probably have to use FacebookDialog to get this working, right?
If this is so, can I somehow still get the chooser? I still want the user to be able to select the service to share with.
I also know about App Links, does anyone know if using this would also solve the issue? Can links via App Links be referenced to the right app although they were shared with the Standard Facebook app?
The Facebook App Links documentation does not say much about sharing content from the app, only how to link from a website.
Since there's no app attribution available from a standard ACTION_SEND intent, Facebook will not know how to deep link into your app.
Using FacebookDialogs will give you app attribution, but will not address the chooser issue.
Using App Links is your best bet. It will tell Facebook how to deep link into your app (Facebook will scrape any link that is shared, so it will know about your App Links), and is a completely server side change, so you don't need to change any of your client code at all (assuming your client code already supports deep linking).
I am new to instagram concept. Is there any sdk available for to integrating instagram to our application. I want to share images to instagram through my application as like what i share to facebook from my application.
you cannot post images to instagram from other applications.
Here’s some text from the very bottom of:
http://instagram.com/developer/endpoints/media/
At this time, uploading via the API is not possible. We made a conscious choice not to add this for the following reasons:
Instagram is about your life on the go – we hope to encourage photos from within the app. However, in the future we may give whitelist access to individual apps on a case by case basis.
We want to fight spam & low quality photos. Once we allow uploading from other sources, it's harder to control what comes into the Instagram ecosystem. All this being said, we're working on ways to ensure users have a consistent and high-quality experience on our platform.
There is no specific api to integrate instagram to Android application. But we can pass the intent in order to share the images if the device installed instagram.
I am going to integrate "facebook sharing" into an app. Basically a timeline post with a link and an image and text.
What is the difference between an elaborate Facebook 3.0 integration vs using the Android OS' share intent with certain parameters, where the latter allows users to choose between apps such as Facebook and it just works if the app is configured to use that intent.
The only difference will be a one line of code that will work with thousands of different app (and other social network) Vs bloating your app with Facebook SDK, hours of work, pain, bug for a less clean result.
;-)
Edit:
The Android Intent will also allow people to share on Twitter, Google Plus, and other websites if they don't like Facebook.
See this Facebook bug report, I guess you have to do it with the Facebook SDK.
Since they only allow posting a link with the share intent.
I wish to drop pins or view the photo's which are of my interest in my Android Application, do we have any SDK by pinterest , as I would want to integrate the same inside my Android Application.
Any suggestions would be like a boon
http://developers.pinterest.com/android/
This is for others who might want to get started with pinterest and land in this page.
It seems like the answer is "not yet"... But go and sign up with them, I'm sure it's on their radar and will come soon enough if it's in their basic FAQ.
https://support.pinterest.com/entries/21151603-i-m-a-developer-does-pinterest-have-a-public-api
Another option (or just for the meantime before they release an official API) may be if the official pinterest app offers an intent for sharing? Plenty of other social web entities like twitter, facebook, etc give intent based access in their official apps, that let you dump media, links, etc into them from other apps in the system, and have the information posted to your accounts.