Comments (10)
Ok I understand. addMeta method has third parameter. Thanks @vinicius73
SEOMeta::addMeta('fb:app_id', 'xxx', 'property');
from seotools.
It would be nice to have it by default in the seotools config? Don't want to add this on every page.
from seotools.
SEOMeta::addMeta('app_id', 'xxx')
returns <meta name="fb:app_id" content="xxx">
but Facebook Sharing Debugger dont accept this code.
It should be: <meta property="fb:app_id" content="xxx" />
from seotools.
It would be nice to have it by default in the seotools config? Don't want to add this on every page.
Then you should call it from your base controller or middleware.
from seotools.
When it's easy to add it in config why use Controller/Middleware? I know everything can be on middleware or base controller, but let's keep them for interesting things ;)
from seotools.
try SEOMeta::addMeta(...);
from seotools.
+1
from seotools.
@J-Brk On each controller/method???!! really!!
from seotools.
Then you should call it from your base controller or middleware.
That would solve it @J-Brk . Will give me an opportunity to understand Middleware too, not had a "need" for it until now.
On each controller/method???!! really!!
@kossa all controllers extend the base controller. So if we follow @J-Brk suggestion, would only have to declare it once on the base controller and all that extend it will implement it. The alternative is middleware, which is more elegant I believe.
It would be nice to have it by default in the seotools config?
I still believe this is the way forward though. If we have Google/Bing Webmaster Tools, etc.. set in the config already. Its not a leap to suggest FB should be on.
from seotools.
Personally I think it's not practical to maintain an active list of custom tags; while with a single line of code you can already easily add the custom tags you want. A good example of a short lived tag; is the one you mentioned. The fb:app_id
is deprecated nowadays.
from seotools.
Related Issues (20)
- Support for PHP 8.1
- Laravel 10 released HOT 1
- Laravel dependency - Error facade HOT 1
- Documentation - OpenGraph - setProduct missing
- OpenGraph - Missing Product attributes
- I have installed artesaos via composer and published after trying to use it doesnt work, please help me HOT 1
- beforeTitle doen't work HOT 1
- Question: SEO Title Different HOT 1
- Support PHPUnit 10
- Livewire
- Non-static method Artesaos\SEOTools\SEOMeta::setTitle() cannot be called statically HOT 1
- missing attribute for setProduct
- - Root composer.json requires artesaos/seotools ^v0.23.0 -> satisfiable by artesaos/seotools[v0.23.0]. HOT 1
- do this package can cache result HOT 2
- Add support for returning the generated seo as an array of strings. Integration with Inertia.js HOT 2
- [Request] Proposal for Google Trends Integration in Laravel SEO Tools
- like the Rank Math plugin in wordpress
- Meta tags added with `SEOMeta::addMeta()` are not rendered HOT 1
- JsonLd not working when used with SEO::generate
- use for laravel 11 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seotools.