Did Facebook change something about profile images? - android

I'm using the Glide library for my Android app in which most users have connected their Facebook profile and are using their profile picture from Facebook as their profile picture on my app. Suddenly today, without having changed any of the code, all images from graph.facebook.com aren't loading correctly with the exception of Facebook's generic profile pictures (what you will see as your profile picture if you haven't yet uploaded one). When I take the URL for the images and paste it in my browser, the images are now being downloaded into a file rather than displayed on the screen like they were in the past. Again, the exception is a generic image which will simply display within my browser like I had been used to.
Does anyone know if there was a change made on Facebook's end and if so, where I could find some sort of documentation of this change? Of course, I'm in need of a solution for how to actually display the images like normal again as well.
Here is the code for how I'm loading the image using the Glide library:
Glide.with(activity)
.load(user.getProfileUrl())
.placeholder(R.mipmap.ic_profile_zero_state)
.bitmapTransform(new com.zensports.util.views.CircleTransform(activity))
.into(mProfileImage);
user.getProfileUrl() should return a URL like https://graph.facebook.com/1670580029918211/picture?width=700&height=700
Thanks in advance.

Related

How share MemoryImage?

I have image from rest API
Image.memory(result.bodyBytes).image;
I display this image in app.
Wish the user could share this image but i don't know how to do it.
It is only supposed to work on android.

Are we allowed to make our own image uploaded in different website in our app for download?

We have our own Artwork and photography images uploaded in different websites like Tumblr,500px,Deviantart,Flickr etc.So for every image there will be already some URL which is publicly available for everybody to view or download.
Example of such a URL is : http://40.media.tumblr.com/b12772f7533b6283ca008ba8d7ec2192/tumblr_nsezua4hur1r4xqayo1_500.jpg
Like there will be a lot of URL, and we are able to show this in our app and app let user to download this URL. Since the server is not our own, But the images are our own, are we allowed to use these urls in our app to show as a gallery app and let the user download it to their own.
Is it allowed? This is related to programming, because we have seen same websites providing their own APIs to fetch data. But we dont want too many details, Our requirement is simple, So we are trying to keep it simple and economical.
You should be fine, but check that the URLs don't change, or you'll be left with a lovely little error.

Android - How to load thumbnails of facebook photos?

I'd like to ask if there is any way to request only small-sized thumbnails of photos from facebook albums. My vision is to create an icon for every user's album that will consist from 3 overlapping photos, something like this..
..and I don't wanna wait until all large images are downloaded. Of course downloading will not run in UI thread, but still.
It is described here: https://developers.facebook.com/docs/graph-api/reference/v2.1/album/picture
There are examples for several platforms/langs

Change Facebook Cover Picture with preview_cover on Android

I've a php application that allow you to change your Timeline Cover picture posting a photo to an album, and with the retrieved ID, redirects you to:
http://www.facebook.com/profile.php?preview_cover=[photo_id]
Also, if you paste directly that link on your browser with a valid ID, it works perfectly.
But on android it does not. Even if I change to-
http://m.facebook.com/profile.php?preview_cover=[photo_id]
What's the way to do this on android?
In case others come across this -
I haven't found a way yet to change the cover photo image within the m.facebook.com environment.
You can, however, add &ref=pb to the end of the URL to force the Desktop experience in mobile.
This isn't ideal, but does allow the user to set their cover photo:
http://www.facebook.com/profile.php?preview_cover=[photo_id]&ref=pb
If I come across a better implementation, I'll update this post.

Android: how to achieve functionality like in facebook photo

I want to implement functionality same like in Facebook album viz. first it show blur image then clear version of that with swipe effect but I am not getting any idea from where to start from.
EDIT: I will be getting these images from webserver.
Actually what happens is:
Facebook show its thumbnail image(which is already downloaded) if the large image is not loaded. So it is not intentionally blurred.
and downloads the original image in background. and then sets the large image to that ImageView.
Numerous examples are available to show Gallery in Android.
afaik the "blurred photo" displaying in Facebook app is not actually an android feature, but more of how the embedded WebView handles images. Facebook App is basically just an embedded webview that hopes to look and feel like a native android app.
For the swiping gesture to view the next photo, you can use this.
Try making a custom class extending Android Gallery
And then try applying a blur effete on both Left and Right imageviews.

Categories

Resources