My need is to upload image/video file to Facebook, Picasa, Google+ etc And I have done all Except Google+. And I Have read This Link. And I have tried with this but its getting activitynotfoundexception. This exception is coming because there no Google+ Application My Device. But My Application requirement is it should be in-depended from Google+.
So I tried with another method But There is another exception. So please help me. Any help will be appreciated.
Google+ does not have an independent write API available to general developers - the only way to post to Google+ via an app is to open the Google+ app (preferably using the Intent returned by PlusShare.Builder as you mentioned).
I'm unlocking this content for you to upload photos to google +.
https://developers.google.com/+/domains/api/activities/insert
Related
I have to post multiple photos to Facebook from Android application.
Can anyone help me how can I do that?
Thanks in advance.
You can download the Facebook Android SDK and integrate it into your application.
Then use this link to be able to log in the user into your Facebook application, thereby acquiring a valid access token. Make sure to ask for the publish_stream permission.
Then you have to make the appropriate graph API call to upload photos. Calling general graph API is explained here.
The method to post photos to a user's facebook is done using the /{album-id}/photos, /{user-id}/photos or directly to the user's wall through /{user-id}/feed. The appropriate endpoints are listed out here.
It would also help if you show what progress you have made in your attempt so far, but because it was a general question, this is a fairly general answer.
I'm trying to link to the Facebook android app from the browser but can't find the right scheme. I looked at the suggestion from this post here and I changed some stuff around. When I try it in the browser it always takes me to the Play Store for Facebook and not the actual app, even though I have it installed. Also, when I try running the samples from the above post, they take me right to the QR scanner.
Here is my best attempt:
test me
Ok so it turns out I needed to edit the scheme to get to the app. Apparently, this works:
test me
I guess my next question would be how can I bring up the publish screen so a user can share to their profile.
Based on How do I pass parameters to android Intent in new scheme on chrome it was possible to share a profile by adding an extra user id parameter like this:
Launch Facebook
Unfortunately Facebook confirmed that this is not possible anymore since a security exception: Security exception when opening ProfileTabHostActivity through intent
I want to upload pics to G+ and Pintrest without user intervention in background without using INTENT or any kind of user interaction.
I have found the api's for Facebook and twitter.
For G+ i found those API's to be read only. Are there any such available for G+ and Pintrest?
Any help will be appreciated.
Google+ already supports uploads of photos for auto backup if enabled, for Pinterest you will have to check out their API documentation about uploading photo's. further more you might want to investigate if users truly want to upload there photo's with out user interaction.
BTW facebook also uploads all photo's taken on the device if this option is enabled, same Google+
Check Android Pin It SDK given by Pinterest.
Regarding G+, you won't be able upload anything from Android app because currently API is only READ ONLY. Yes you can integrate Share plugin which would help user to share rich content from app into the Google+ stream, including links, photos and location.
My android app provide option to login with google account. For that i followed link https://sites.google.com/site/oauthgoog/oauth-practices/mobile-apps-for-complex-login-systems/samplecode provided by google.
i cant understand some of the things in that code. so please help me in the following queries.
What is the url we need to load to open Google Login page in mobile with webview?
how to provide redirection url to our app?
What is YOUR_AUTHENTICATION_ENDPOINT?
I Changed the way, I used Google+ API ,because its simpler and newer way.
https://developers.google.com/+/mobile/android/getting-started
I have integrated the google plus using both Auth 2.0 & using native Share(+1) Button as on Google Plus Developers. The code is working fine (doing SignIn, fetching profile and search friends).
But I now want to share text on google plus.
By the second way Of using share button as suggested on google plus android developers is working good in case of share message.
But I want to share message to google plus of user without using intent or ShareCompat etc.
Is there any way as this all need that Google Plus app must be installed in device...?
Is There any way to do that without the need of google plus app installing in device...?
Regards,
Arpit
You can explicitly share a link using the path to the Google+ share form. For example:
https://plus.google.com/share?url=http://stackoverflow.com
Will share a link to Stack Overflow.
The google API do not allow write access like facebook and twitter api. You must have google application installed.
Here they say:
Note: The Google+ API currently provides read-only access to public
data. All API calls require either an OAuth 2.0 token or an API key.
Google plus API provides read only access for now.