I have uploaded some pics in "photostream" though the Flickr website.
Now I want to integrate Flickr in my Android app. How can I download those same pics in my device using the Flickr API? I did the "login" part for these but I don't know how to fetch my uploaded images.
flickr.people.getPhotos or flickr.people.getPublicPhotos
Return photos from the given user's photostream. Only photos visible to the calling user will be returned. This method must be authenticated; to return public photos for a user, use flickr.people.getPublicPhotos.
Note that the API docs lists this project https://code.google.com/p/flickrj-android/ which might make your life easier. In there it is the LoadPhotostreamTask.
Related
Can I get Instagram Full Name and Profile picture without Access Token. It seems I can't find any API for that.
I tried with:
https://www.instagram.com/{username}/media
But, I get only media if user has pictures and if user is public.
I found some android apps get Full Name and profile picture only with Username, I need something like that in my application.
I was trying to do similar kind of thing last month but Actually there are no official APIs for that ,
there is this website https://openinstagram.com idk how those guys crated this APIs but you can try this:
https://api.openinstagram.com/{username}
and replace the text username with any real username and you will get profile picture and full name of that user even if the user is private,
this is not the only example, there are multiple website running on same kinda thing website like web.stagram and websta and it's mentioned on there website that they aren't certified by Instagram (because they are using unofficial APIs)
hope this would help.
I am using google cloud storage for storing profile images for one of the android app which we are developing. I am able to store images to the cloud properly..I want to set the same image to imageview in my application using picasso API.
It is saying Access denied, When I share Image on cloud publicly, it is setting image to Imageview, otherwise not...
How could I give these public share through android application for user to set images using Picasso?
Thank you in advance
When you upload the image you must make sure (assuming you don't want authentication) the ACL is set to publicRead.
The upload in java looks like this:
storage.objects()
.insert(BUCKET_NAME, null, content)
.setName(fileName)
.setPredefinedAcl("publicRead")
.setKey(API_KEY)
.execute();
For setting the ACL manually in the developers console tick the "shared publicly" check box.
The url then looks like this:
http://storage.googleapis.com//
Good luck.
I am going to develop an app for a retailer and the client want to show its official instagram images in the app.
Its Instagram account is public and I see that, there is an API for retrieving user recent images.
https://api.instagram.com/v1/users/{user_id}/media/recent?clent_id=XXXXX
The document have not stated that access_token is required but when I execute this api, it says I am missing access_token.
Is it normal or I did something wrong?
Because your requested URL is wrong, it will work only after correcting the 'client_id' instead of 'clent_id'.
How to get feeds(photos only) of a certain Facebook page via Facebook API for android?
is there a straight forward method for that.
Exactly what I need is an activity that shows feeds of photos from a certain page. that why I think this doesn't require login' in. Can I do that? and HOW?
For a page, whose photos are public you can fetch them without login without any access token, using /PAGEID/photos. For eg: http://graph.facebook.com/cocacola/photos
If you want the public feeds pf a page, you can fetch them too, without the login using the App Access Token, which you can get using the \GET request to :
/oauth/access_token?
client_id={app-id}
&client_secret={app-secret}
&grant_type=client_credentials
and use this token to query the feeds using /PAGEID/feed. For Eg: http://graph.facebook.com/cocacola/feed?access_token=APP_ACCESS_TOKEN
(I think you need the Photos not the Feeds; to which you are saying Feeds of Photos)
If you are new to facebook integration: How to Integrate Facebook Connect with Android
Try using graph api
http://graph.facebook.com/pagename?fields=photos.fields(images)
For more options check the docs
I want to upload a foto from my android app to a facebook fan page using the facebook API.
When i look in the hackbook android example app (link). the code looks as following to a upload photo:
Bundle params = new params.putString("url",
"http://www.facebook.com/images/devsite/iphone_connect_btn.jpg"); params.putString("caption",
"FbAPIs Sample App photo upload");
Utility.mAsyncRunner.request("me/photos", params,
"POST", new PhotoUploadListener(), null);
This code works, it posts the photo on my own facebook page. But i don't want the photo to be posted on my page but on a fan page.
As explained in the facebook documentation 'me' could be changed with a facebook User_ID. I tried changing the "me/photo" in "[fanpagename]/photo" or "[fanpageID]/photo", but that did not work. when i used the username i got an error, when i used the ID it post the photo on my own page. In the graphAPI photo documentation (link) no example or explanation is givin on how to upload a foto on fan page.
also the
params.putString("to", [fbid]);
does not work.
Any suggestions?
I have been busy with this research for three full days and did not find the answer for my problem. But i think i have an explanation for it.
if a user posts a photo to friend/fan_page with the official android FB app it uses a "feed" with a picture(url-link). The user can't see on his own wall that he actually shared or posted a picture on the friend/fan_page. (for example: "Bob - posted a photo on CocaCola")
This is probably the reason why the function is disabled because developers could use this to send photo's to all kinds of friends/fan_pages without the user being aware of it.
I came to this hypotheses because i found a sort of work around. First upload the photo to users own album. get the URL of that photo and then post a "feed" on the friend/fan_page with a picture(url-lnk). Facebook then gave this error: "FBCDN image is not allowed in stream" in other words, you can't use photos that are on FB website domain to link to. So I think there is quite a bug/lazyness in the facebook developement departmet :P which is a pity because it is a nice socialnetworking function for mobile apps.
You are on the right track, but to publish photos to a Page you will need the publish_stream and manage_pages permissions, and the Page Access Token to prove you have them. You can read more about this here:
http://developers.facebook.com/docs/reference/api/page/#photos
http://developers.facebook.com/docs/reference/api/page/#page_access_tokens
Some example code (using the PHP SDK, but the logic should be the same in any language) is here: https://stackoverflow.com/a/7222078/164439
Update:
If you want to post to the Page's Wall/Feed (without being a Page Admin), you can do that without the Manage Pages permission and the Access Token stuff.
But it's different than publishing a Photo object to the Page's Photos collection, which is what I thought you asked. You actually want to do a regular Post to the Page, with a Picture attachment.
Here are some resources to do this:
Facebook Post API: http://developers.facebook.com/docs/reference/api/post/
http://facebook.stackoverflow.com/questions/691425/how-do-you-post-to-the-wall-on-a-facebook-page-not-profile
http://facebook.stackoverflow.com/questions/5756474/post-to-facebook-page-wall
Using Facebook Graph to simply post a wall message with just javascript
Good luck!