Skip to content

[9.2] Adding Open Graph Support for public shares http://ogp.me/#25579

Merged
PVince81 merged 3 commits into
masterfrom
facebook-preview-public-links
Oct 21, 2016
Merged

[9.2] Adding Open Graph Support for public shares http://ogp.me/#25579
PVince81 merged 3 commits into
masterfrom
facebook-preview-public-links

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Jul 22, 2016

Copy link
Copy Markdown
Member

Sharing a image where a preview can be generated:
bildschirmfoto von 2016-07-26 21-31-47

Sharing a PDF where no preview is available an we fallback to the logo
bildschirmfoto von 2016-07-26 21-32-04

@DeepDiver1975 DeepDiver1975 added this to the 9.2 milestone Jul 22, 2016
@mention-bot

Copy link
Copy Markdown

@DeepDiver1975, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @lenz1111 and @rullzer to be potential reviewers

@tcitworld

Copy link
Copy Markdown
Contributor

May there be a default og:image even if we have no preview (like the oC logo) or is it a bad practice to provide a picture that doesn't indicate content ?

@DeepDiver1975

Copy link
Copy Markdown
Member Author

May there be a default og:image even if we have no preview (like the oC logo)

sounds reasonable to me

@DeepDiver1975 DeepDiver1975 force-pushed the facebook-preview-public-links branch from f4bc66f to 1dcbab6 Compare July 26, 2016 19:30
@DeepDiver1975 DeepDiver1975 changed the title Adding Open Graph Support for public shares http://ogp.me/ [9.2] Adding Open Graph Support for public shares http://ogp.me/ Jul 26, 2016
@DeepDiver1975 DeepDiver1975 force-pushed the facebook-preview-public-links branch 2 times, most recently from eab4a32 to 6b9111a Compare August 18, 2016 22:37
@DeepDiver1975 DeepDiver1975 mentioned this pull request Sep 16, 2016
9 tasks
@DeepDiver1975 DeepDiver1975 force-pushed the facebook-preview-public-links branch from fa35cf9 to a5779a1 Compare September 16, 2016 12:41
@DeepDiver1975

Copy link
Copy Markdown
Member Author

@wotanii please help testing this - thx

@bjuergens

bjuergens commented Sep 17, 2016

Copy link
Copy Markdown
Short:

I suggest you adjust preview-sizes, so the default-preview has about the same size as the preview for a big image. The relevant og-tags are: og:image:width and og:image:height

Long:

I don't really know what to test, so I changed my instance of owncloud 8.2.7 to include this PR.

So everything seems to work fine. Although I'm not sure what the deal with $shareTmpl['shareUrl']is. I left it out in my "backport", because I don't really see why it's there in the first place.

edit:
here is the same chat as seen from a android-device:
capture _2016-09-17-13-36-26

As you can see the default-image for the pdf-file is big and blurry; and the generated preview for the big JPG is very small.

@DeepDiver1975 DeepDiver1975 force-pushed the facebook-preview-public-links branch from a5779a1 to 8c3ef3c Compare September 29, 2016 08:45
@PVince81

PVince81 commented Oct 5, 2016

Copy link
Copy Markdown
Contributor

Anything left to do here ? From the comments above it seems this works fine ?

@DeepDiver1975

Copy link
Copy Markdown
Member Author

Ready for final review, test and merge from my pov

@PVince81

Copy link
Copy Markdown
Contributor

Fixes #12946

@PVince81

Copy link
Copy Markdown
Contributor

👍

@PVince81 PVince81 merged commit 15981e3 into master Oct 21, 2016
@PVince81 PVince81 deleted the facebook-preview-public-links branch October 21, 2016 12:02
@lock

lock Bot commented Aug 4, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants