FlickrJ-Android Alway authentication failed - android

I am developing a small android application to upload photo to Flickr. I use Flickj-android library to call Flickr API. But I can't authorize my app. I always get:
I refer to this example: https://github.com/luminousman/Flickr

I'm not 100% sure, but maybe url without "m" more correct?
I'm current use this url: https://www.flickr.com/services/oauth/authorize?oauth_token=xxxx-yyyy.
Try use scribejava library for auth/requests.

Related

Upload image to wordpress via Android

I am creating an image application in which I am trying to implement the feature to directly upload the photos to wordpress website after successful authentication. I am unable to find anything about this implementation on Android so any kind of help would be really helpful.
Try this url it's explain clearly !
and
All you thing is
1-Api to Upload image to web server(host)
2-Send request to Server
3-Need php programming
4-save data in database (It's not necessary)
Hope it help

Post local image with fb graph api (closed)

What I want is:
share a local image to my fb wall without native fb app installed (not using fb sdk).
What I have tried:
I'm ok with share url image, status ...
I tried many threads related to this api: /me/feed, /me/photos/ and also with various kind of fields: picture, source, method=photos.upload...
But it seems that fb changed the way to upload byteArray image through POST or I missed something. Please help me to clarify that professors.
I reference to this document:
https://developers.facebook.com/docs/graph-api/photo-uploads
In this doc, they said that:
To specify a photo you can use two methods:
Provide the URL for the photo with the url parameter
Provide a file with the POST request* (how can I do that?)
I found the solution, by using those classes:
LoginManager: request "publish_actions" and get accessToken
GraphRequest: pass the accessToken to "/me/feed"
ShareApi: share content normally as ShareDialog

Google Places API does not returns photos via photoreference in android

I am using Google places API to get the details of particular restaurant.
Now, I wish to display the image of the restaurant in my android app .
For that, I referred this .
However, the below link which is required to get an error gives me a 500 error and when I use http:// in the link instead of https:// , it gives an image which says you have exceeded the API limit.
I am using Glenter link description hereide to display these images. I dont think there's any issue with the Glide . The url generated does not gives any output.
Below is the code :
String url = mPlaces.getIcon();
String photoreference = mPlaces.getPhotoreference();
String restaurantpic = "http://maps.googleapis.com/maps/api/place/photo?" +
"maxwidth=400" +
"&photoreference=" +photoreference +
"&key="+API_KEY;
Log.d("Loading restaurantpic" , restaurantpic);
Glide
.with(mContext)
.load(restaurantpic)
.centerCrop()
// .placeholder(R.drawable.loading_spinner)
//.crossFade()
.into(mImageViewIcon);
This is an example of restaurantpic URL with https protocol which gives 500 error. The same with HTTP protocol gives below attached image(Which is for quota filled).
So guys, It was my silly mistake to use "referenece" field from the JSON data instead of "photo-reference" field .
The issue was resolved .
In case anyone else is having some trouble with this:
If you are trying to use the Web Service API key on Android it will not work correctly if you are also trying to restrict that API key to only certain Android Apps (by package name/fingerprint)
See here:
https://developers.google.com/places/web-service/get-api-key#get_an_api_key
Note: The Google Places API Web Service does not work with an Android or iOS restricted API key.

What is Authorization callback URL? Android

I need to use Imgur to upload images online using android eclipse. i created an account and was trying to register my application to get the client id and client secret. i reached here https://api.imgur.com/oauth2/addclient
I entered my Application Name as : com.nyp.assignment (is this just a name to it or we need to follow our package name? pls advise as well)
when i get to the callback url , i have no idea what to write for it. i've refered to here at https://api.imgur.com/oauth2 but still dont get it.
can someone list an example of a callback URL for Android? (Eclipse)

Twitter Sharing

I need to post tweets not only with text but also with images.
I already tried socialauth library, which doesn't support images in tweets.
What is best way to implement twitter sharing from my Android application?
Should work fine with scribe, haven't tested this sample in a while and I know twitter shut off some of its older APIs but I think the example still works fine.
Once you get your auth token you'll still do an OAuthRequest like my example, but the verb will be POST and you'll need to attach a body. You'll use this API instead of verify_credentials https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
http://schwiz.net/blog/2011/using-scribe-with-android/

Categories

Resources