OpenGraph | Laravel package to fetch Open Graph data | Search Engine Optimization library

 by   shweshi PHP Version: V1.1.0 License: MIT

kandi X-RAY | OpenGraph Summary

kandi X-RAY | OpenGraph Summary

OpenGraph is a PHP library typically used in Search Engine Optimization applications. OpenGraph has no vulnerabilities, it has a Permissive License and it has low support. However OpenGraph has 1 bugs. You can download it from GitHub.

An article can be found on the medium blog:

            kandi-support Support

              OpenGraph has a low active ecosystem.
              It has 96 star(s) with 18 fork(s). There are 7 watchers for this library.
              It had no major release in the last 12 months.
              There are 1 open issues and 12 have been closed. On average issues are closed in 26 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of OpenGraph is V1.1.0

            kandi-Quality Quality

              OpenGraph has 1 bugs (0 blocker, 0 critical, 1 major, 0 minor) and 1 code smells.

            kandi-Security Security

              OpenGraph has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              OpenGraph code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              OpenGraph is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              OpenGraph releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              OpenGraph saves you 93 person hours of effort in developing the same functionality from scratch.
              It has 250 lines of code, 16 functions and 7 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed OpenGraph and discovered the below as its top functions. This is intended to give you an instant insight into OpenGraph implemented functionality, and help decide if they suit your requirements.
            • fetch content from url
            • Get the contents of a URL .
            • Verify image url
            • Register OpenGraph class .
            • Bootstrap application .
            • Get all data .
            • Get the open graph accessor .
            Get all kandi verified functions for this library.

            OpenGraph Key Features

            No Key Features are available at this moment for OpenGraph.

            OpenGraph Examples and Code Snippets

            No Code Snippets are available at this moment for OpenGraph.

            Community Discussions


            opengraph meta data not working properly for LinkedIn regardless of Post Inspector
            Asked 2022-Apr-05 at 05:45

            There seems to be something odd in OG metadata in our website and I can't figure out what it is...

            For example this page:

            Has og:image and og:title (there is some extra stuff, but they shouldn't matter)

            Previews show correctly in here:

            Post Inspector shows preview incorrectly just like sharing the page in Linkedin app: Using inspector should refresh the cache, but it's not doing it.

            I tested with a test page ( in different domain with same header and all worked just fine with inspector and app and everything.

            Is the problem deeper in -settings since all worked fine in

            edit: did more testing on our beta-site so content of the page is same as in production. All worked just fine in beta-site. So my guess there is something wrong in production website's settings which is out of my comprehension. Any tips? :) We are using Contentful and AWS...



            Answered 2022-Apr-02 at 18:55

            Try out this meta tags debugger tool here:

            My guess would be that maybe you need to add width / height tags for LinkedIn to pick it up



            Generate dynamic meta image for post in WordPress
            Asked 2022-Apr-04 at 04:01

            GitHub automatically generates meta tag image for each repository with dynamic content if user doesn't provide any thumbnail image. eg: This is the meta image for one of my repository

            I want impliment this feature on my wordpress. Generate dynamic png image contain post title, date, author name, and author avatar image.

            Is it possible in WordPress? If yes, then how?



            Answered 2022-Apr-04 at 04:01


            【Next.js】dynamic head tags are not reflected
            Asked 2022-Mar-26 at 14:51

            Next.js next/link head tag and next-seo OGP are not reflected. I have been working on this for over 5 hours and have not been able to solve the problem&-(

            The only tag that is adapted is the one in the Head of _document.js.

            When I look at the HEAD from the browser validation, I see what I set in all of the HEADs: next/link, next-seo, and _document.js. However, I have tried a number of OGP verification tools and they all only show the tags set in the HEAD of _document.js.

            Can someone please help me :_(




            Answered 2022-Mar-26 at 14:51

            According to the docs of redux-persist,

            PersistGate delays the rendering of your app's UI until your persisted state has been retrieved and saved to redux.

            which means at build time, only null is rendered.

            If does not rely on the data in the redux store, try placing it as a silbing of , instead of children.



            Get value from html tag value with colon using XPath
            Asked 2022-Mar-25 at 14:39

            I am trying to get value from this attribute




            Answered 2022-Mar-25 at 14:39

            To select the :news-item-data attribute value in XML you presenting here you can use this XPath:



            Web-scraping with Python to extract microdata for each page from a sitemap.xml
            Asked 2022-Feb-24 at 14:51

            I'm trying to extract name, brand, prices, stock microdata from pages extracted from sitemap.xml But I'm blocked with the following step, thank you for helping me as I'm a newbie I can't understand the blocking element

            • Scrape the sitemap.xml to have list of urls : OK
            • Extract the metadata : OK
            • Extract the product schema : OK
            • Extract the products not OK
            • Crawl the site and store the products not OK
            • Scrape the sitemap.xml to have list of urls : OK


            Answered 2022-Feb-24 at 14:51

            You can simply continue by using the advertools SEO crawler. It has a crawl function that also extracts structured data by default (JSON-LD, OpenGraph, and Twitter).

            I tried to crawl a sample of ten pages, and this what the output looks like:



            How to set opengraph metadata tags for a sphinx document?
            Asked 2022-Feb-21 at 20:39

            I'm looking to add meta tags to my sphinx document for the opengraph properties.

            I see that sphinx has this meta directive



            Answered 2022-Feb-21 at 20:39

            The aforementioned sphinxext-opengraph extension currently has a PR for setting the values per page. The PR is effectivley done so a new version should be released very soon.

            Edit: The PR has been merged. You can now set any tag by adding field lists to the top of the page like so:



            How to get Related Social Media object from Sitefinity in C# (OpenGraphDescription)
            Asked 2022-Jan-29 at 14:13

            I am currently struggling with getting a specific custom field from an object in Sitefinity.

            The object's custom field is of type Social media (OpenGraph), meaning it's an o-g meta data description property:

            I tried these:



            Answered 2022-Jan-29 at 14:13

            FYI, the dynamic ItemViewModel is SO MUCH easier to work with than the default API.



            Why "index.html#contact" dont move to div with id "contact"?
            Asked 2022-Jan-02 at 12:19

            Code that should get me to div with id "contact":



            Answered 2022-Jan-02 at 12:08

            You have at least two issues going on:

            1. Since your #projects contains floated elements (float: left;) you need to use something to avoid it to collapse (a clear fix)
            2. A large part of your projects aren't properly inside the #projects div, you current setup is:



            FB OpenGraph og:image, link a folder?
            Asked 2021-Nov-20 at 23:00

            I'm in the process of adding meta tags to a project, and I've been reading through the OpenGraph doc, however every time I see og:image what comes next is always a URL. Is it possible to pass a file in?



            Answered 2021-Nov-20 at 21:19

            Relative URLs will not work, the og:image property can only handle full URLs.

            The og:image property does have some optional structured properties:

            • og:image:url - Identical to og:image.
            • og:image:secure_url - An alternate url to use if the webpage requires HTTPS.
            • og:image:type - A MIME type for this image.
            • og:image:width - The number of pixels wide.
            • og:image:height - The number of pixels high.
            • og:image:alt - A description of what is in the image (not a caption). If the page specifies an og:image it should specify og:image:alt.

            A full image example:



            Issue with Open Graph tags and Nuxt.js (prod?)
            Asked 2021-Oct-21 at 16:11

            I integrated OpenGraph tags into my Nuxt.js app, following the instructions from their SEO documentation at

            I'm setting tags from a child component using the SocialHead component. The contents of this component are:



            Answered 2021-Sep-13 at 16:31

            At the end, getting rid of was enough to fix the SEO issue, since the configuration was properly done.


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install OpenGraph

            Perform the following operations in order to use this package.
            Install via composer
            Add Service Provider Open config/app.php and add shweshi\OpenGraph\Providers\OpenGraphProvider::class, to the end of providers array: 'providers' => array( .... shweshi\OpenGraph\Providers\OpenGraphProvider::class, ), Next under the aliases array: 'aliases' => array( .... 'OpenGraph' => shweshi\OpenGraph\Facades\OpenGraphFacade::class ),


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Reuse Pre-built Kits with OpenGraph

            Consider Popular Search Engine Optimization Libraries

            Try Top Libraries by shweshi


            by shweshiJavaScript


            by shweshiHTML


            by shweshiTypeScript


            by shweshiJavaScript