Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote_url for facebook not pulling the image #2423

Closed
drkpkg opened this issue Sep 14, 2019 · 3 comments
Closed

remote_url for facebook not pulling the image #2423

drkpkg opened this issue Sep 14, 2019 · 3 comments

Comments

@drkpkg
Copy link

drkpkg commented Sep 14, 2019

I'm working with carrierwave and omniauth, and i'm using remote_[object]_url to pull the provider.info.image data from that. Everything normal with google image profile. But for facebook image is not pulling. I try with Down library and set the avatar = down_file and is not working.

Using down not working

require "down"

file_fb = Down.download(provider.info.image)
data = {user: user,
            first_name: provider.info.name,
            avatar: file_fb}

Using remote_avatar_url either

data = {user: user,
              first_name: provider.info.first_name,
              first_last_name: provider.info.last_name,
              remote_avatar_url: provider.info.image}

remote_avatar_url is pulling the image, but not saving according the debug
Screenshot_20190914_112436

It seems carrierwave is not getting the file format, because I don't have another theory.

@drkpkg drkpkg changed the title remote_url for facebook callback not pulling the image remote_url for facebook not pulling the image Sep 14, 2019
@courtsimas
Copy link
Contributor

courtsimas commented Sep 18, 2019

Same goes for vimeo og images. the file format isn't evident and it's just not working properly. Here's an example https://i.vimeocdn.com/filter/overlay?src0=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F814887533_1280x720.jpg&src1=https%3A%2F%2Ff.vimeocdn.com%2Fimages_v6%2Fshare%2Fplay_icon_overlay.png <- that image loads fine in browser.

But when assigned via remote_xyz_url=, it strips it down to vimeo's basic https://i.vimeocdn.com/filter/overlay as if it's not either following the redirect properly or defaulting to something when it can't determine the proper file or meta info about it... which is not right. It used to work prior to 2.0.

@mshibuya
Copy link
Member

Dup of #2411 and using 2.0.2 will solve this.

@courtsimas
Copy link
Contributor

courtsimas commented Mar 13, 2020

2.0.2 did not fix this @mshibuya just fyi. Still have the issues on 2.0.2; it didn't error out like #2411 suggested - it actually just didn't grab the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants