我正在使用我的应用程序通过公共 api 将图像发布到 LinkedIn,该应用程序从我们的 S3 存储桶中提取图像。当更新出现在 LinkedIn 上时,它会在图像旁边显示“s3.amazon.com”。有什么办法可以防止这种情况发生吗?
来自应用程序的 Ruby 代码:
def post(message_body, attachment, post)
options = { :visibility => { :code => 'anyone' } }
if attachment.present?
options.merge!(:content => { :title => 'titles',
:description => 'descriptions',
:submitted_url => 'http://s3.amazonaws.com/...'
}, :comment => message_body)
else
options.merge!(:comment => message_body)
end
response = client.add_share(options)
post.posted!
JSON.parse(response.body)['updateUrl']
rescue LinkedIn::Errors::UnauthorizedError => e
raise SocialProfile::UnauthorizedError, e.message
rescue LinkedIn::Errors::AccessDeniedError => e
raise SocialProfile::UnauthorizedError, e.message
## Heading ##end