I'm playing with Cloudinary and getting the Facebook profile image of a user. This is what I did:
I created a Cloudinary account (free)
I created a Facebook account (sample one without assign a profile image)
** Works fine through my Rails app **
Then I changed the profile image of the user
Cloudinary still shows the user profile image as blank (4-5 days now)
This is my updated Facebook sample user.
This is what I get via Cloudinary (Ruby gem).
The problem is user's Facebook profile image is not updating via Cloudinary.
I'm using Cloudinary with Rails 4.
Cloudinary automatically refreshes Facebook profile pictures once a week, however you can explicitly refresh the image using the API, e.g.,
Cloudinary::Uploader.explicit("user_name", :type=>"facebook")
For more information:
http://cloudinary.com/documentation/rails_image_upload#refresh_images
Note that Facebook is gradually changing its user IDs to be associated IDs by application rather than public IDs which they used till now.
It is on Cloudinary's road-map to support Facebook's new IDs convention.
Related
Soo.. with the new changes that Instagram and Facebook have brought upon us, it has made it more complicated to have a module displayed on our website to just show the images from a user's feed.
Long Story:
Below, are the things that I have already accomplished:
- Create a Facebook page and link Instagram account (Completed)
- Create an Facebook App (Completed)
- Create a Business Manager page (Working on verifications)
I want to be able to display a users profile images depending on the username that is set in a custom field type on WordPress Admin Panel.
Questions:
Since we own all of our corporate IG accounts, do I have to implement Instagram/Facebook login to display user's feed items?
Is there a way to bypass this?
I'm using the Google Admin Directory Users endpoint to retrieve all the users in our company's domain. The request is working as expected and I'm receiving the full list of users.
But a large number of users are missing photos. The thumbnailPhotoUrl property is present on each user entry, but following the URL leads to
https://ssl.gstatic.com/s2/profiles/images/silhouette200.png
which is the default avatar, for a large number of our users.
However:
If I go into Inbox and send one of the users showing the default avatar an email, their profile pic appears when sending the email
And when the user logs in to our app using their company email (using
Firebase Auth), their user response contains a public URL for their avatar
And if I log in to G Suite Admin and view our users, the majority of them have avatars. Only a small handful of users show the silhouette avatar.
Also, the docs state:
Note: In this version of the API, a photo is the user's latest Gmail Chat profile photo. This is different from the Google+ profile photo.
From the accounts we've viewed, all users have Gmail Chat/Hangout profile photos.
So it seems the users have photos associated with their account. Why are the photo URLs in the Google Admin Directory showing the default avatar? And not the user's uploaded photo?
I ran into this today and found your question while trying to solve the problem. I think I have the answer!
The thumbnailPhotoUrl property in each of the user profiles that leads to silhouette200.png starts with https://www.google.com/s2/photos/private/ followed by a long id string.
On the other hand, any user profile that returns a valid photo (instead of redirecting to the default/anonymous photo) starts with https://www.google.com/s2/photos/public/ ... like my Google Apps/G Suite profile photo.
I discovered fairly quickly that if I am logged into my G Suite account in the browser where I try to view those thumbnail photos, they resolve as expected with actual photos instead of silhouette200.png.
So: to display G Suite user photos in a custom app, the app user needs to be logged in with a G Suite account that is authorized to read other G Suite domain users' private thumbnail photos
or
your app will need to proxy the photo request in order to return the actual thumbnail.
Of course, please do consider user privacy expectations and
regulations; the fact that the profile photo is private usually
indicates that the user did not set their own profile photo but had it
set by some external application or sync process. (As far as I can tell, when a user
sets their own profile photo using My Account or About Me,
it is always made public.)
Adding some documentation reference to help define the ultimate purpose.
Google API part is here.
Parameter viewType() defines what part of the user profile is returned which in turn depends on GSuite Directory settings. This parameter also defines the level of
authorization when using the Google API.
When using a third party app as defined here, more elements come into play.
In the end, thumbnails appeared...
I am currently creating a facebook app and I need to create a facebook share button.I used facebook share button social plugin and setup the meta tags.image with meta tags
my app genarating images using app users facebook id.I am using a session to get the app id to my page.
It's working fine in image src tag.but not in og:image.
img src image
I used sharing debugger it's only reading the url untill the "http://www.koombiyocharacter.me/joined_images/joined_image" but not variable i got from session.not with the session variable
I need to share with the image.now it shares without the image.Can I find a solution for this with php sdk?.Shares like this
How Can I solve this problem.I am new to facebook app development.
I have a Facebook app, with an associated photo album. Users of the app may upload images to this album, and I have some trouble figuring out how the authentication for this will work in a real life application.
While testing, I've used the Graph API to get a list of my accounts, and copied the access token for the app account into my code. This works, but the access token will expire in a few hours and I have to get a new one and copy into my code.
I tried to automate the process, by going through my user's account in the code, and getting the access token in realtime. This how ever, only worked for me obviously, since other users couldn't access my accounts through the Graph API.
How is this supposed to work in a real life application? That access token is the only one I've managed to upload images with.
that must be because other users are not app developer so there is not needed access_token for them,
app pages are removed (but seems photos are available yet)
if you want to do so i recommend you to open a facebook page for your app Then get page mange permission from your facebook account for the app Then get page access_token & save it (please note that to set your app for 60 days long access_token) Then let users to upload images via page token (this will make users available to upload images as page There is no way to upload an image directly from user account to a page via api yet )
I'd like to know if the following is possible using Facebook apps:
I'm using the Facebook SDK for .NET and want to create an app that a page will use. The app will take a photograph from a user who happens to visit the page, that photograph should then be sent to one of the page's photo albums.
I've managed to perform this successfully, but only when logged in as the page admin. If I log out of the page admin, log in as my personal Facebook account (as most users of the app will do) then the photograph never gets sent to the pages photo album.
I would like to do all of this when the user uploads the photo, but if it isn't possible I'll need to look into a separate process to actually send the photo's to Facebook, and just store the image on my server until the process runs.
The admin photo album (aka page photo album) is not the same album as non-page admins get to upload to (which is the wall). They are separate buckets all together.
As you mentioned, you can always just upload and store the photos on your server, and then just have a feed item that links over to that image.