Git Product home page Git Product logo

Comments (10)

ozgurkaragoz avatar ozgurkaragoz commented on May 20, 2024 8

Ok I understand. addMeta method has third parameter. Thanks @vinicius73

SEOMeta::addMeta('fb:app_id', 'xxx', 'property');

from seotools.

ahosker avatar ahosker commented on May 20, 2024 2

It would be nice to have it by default in the seotools config? Don't want to add this on every page.

from seotools.

ozgurkaragoz avatar ozgurkaragoz commented on May 20, 2024 1

@vinicius73

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.

J-Brk avatar J-Brk commented on May 20, 2024 1

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.

kossa avatar kossa commented on May 20, 2024 1

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.

vinicius73 avatar vinicius73 commented on May 20, 2024

try SEOMeta::addMeta(...);

from seotools.

paulocastellano avatar paulocastellano commented on May 20, 2024

+1

from seotools.

kossa avatar kossa commented on May 20, 2024

@J-Brk On each controller/method???!! really!!

from seotools.

ahosker avatar ahosker commented on May 20, 2024

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.

J-Brk avatar J-Brk commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.