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

Override Open Graph Default Image #98

Open
ewistrand opened this issue Sep 13, 2017 · 1 comment
Open

Override Open Graph Default Image #98

ewistrand opened this issue Sep 13, 2017 · 1 comment

Comments

@ewistrand
Copy link

First thanks for your hard work on this! Is it possible to override the default open graph image? With twitter we can set the card image with setImage() in the controller but with open graph we can only use addImage() which does not override the default open graph image. Facebook is pulling the first it sees, which is the default.

@senter-logistics
Copy link

senter-logistics commented Mar 4, 2021

For facebook, i had to comment all my images as below, cuz nothing worked, but with just one, it'll take that.

 OpenGraph::addImage($logo);
//OpenGraph::addImage(['url' => $logo, 'size' => 300]);
//OpenGraph::addImage($logo, ['height' => 300, 'width' => 300]);
//OpenGraph::addImage($logo, ['height' => 600, 'width' => 600]);

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

When branches are created from issues, their pull requests are automatically linked.

3 participants