{"action":"created","issue":{"url":"https://api.github.com/repos/oscarotero/Embed/issues/159","repository_url":"https://api.github.com/repos/oscarotero/Embed","labels_url":"https://api.github.com/repos/oscarotero/Embed/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/oscarotero/Embed/issues/159/comments","events_url":"https://api.github.com/repos/oscarotero/Embed/issues/159/events","html_url":"https://github.com/oscarotero/Embed/issues/159","id":167757087,"number":159,"title":"Support open graph","user":{"login":"onigetoc","id":47570,"avatar_url":"https://avatars.githubusercontent.com/u/47570?v=3","gravatar_id":"","url":"https://api.github.com/users/onigetoc","html_url":"https://github.com/onigetoc","followers_url":"https://api.github.com/users/onigetoc/followers","following_url":"https://api.github.com/users/onigetoc/following{/other_user}","gists_url":"https://api.github.com/users/onigetoc/gists{/gist_id}","starred_url":"https://api.github.com/users/onigetoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onigetoc/subscriptions","organizations_url":"https://api.github.com/users/onigetoc/orgs","repos_url":"https://api.github.com/users/onigetoc/repos","events_url":"https://api.github.com/users/onigetoc/events{/privacy}","received_events_url":"https://api.github.com/users/onigetoc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T02:44:36Z","updated_at":"2016-07-27T07:21:10Z","closed_at":"2016-07-27T07:21:10Z","body":"Hi, me again.\r\nI wanted more infos like Author name. \r\nFrom this example URL: https://broadly.vice.com/en_us/article/even-a-tiny-bit-of-exercise-will-help-you-not-die-study-says\r\nI find out a lot of Open graph informations. Like image, author, type, link ect.\r\nExample: \r\n`<meta property=\"og:type\" name=\"og:type\" content=\"article\" />`"},"comment":{"url":"https://api.github.com/repos/oscarotero/Embed/issues/comments/235506540","html_url":"https://github.com/oscarotero/Embed/issues/159#issuecomment-235506540","issue_url":"https://api.github.com/repos/oscarotero/Embed/issues/159","id":235506540,"user":{"login":"oscarotero","id":377873,"avatar_url":"https://avatars.githubusercontent.com/u/377873?v=3","gravatar_id":"","url":"https://api.github.com/users/oscarotero","html_url":"https://github.com/oscarotero","followers_url":"https://api.github.com/users/oscarotero/followers","following_url":"https://api.github.com/users/oscarotero/following{/other_user}","gists_url":"https://api.github.com/users/oscarotero/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarotero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarotero/subscriptions","organizations_url":"https://api.github.com/users/oscarotero/orgs","repos_url":"https://api.github.com/users/oscarotero/repos","events_url":"https://api.github.com/users/oscarotero/events{/privacy}","received_events_url":"https://api.github.com/users/oscarotero/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T07:21:10Z","updated_at":"2016-07-27T07:21:10Z","body":"Hello. Thanks, I've fixed the author in opengraph. And about other values, Embed provides a set a standard values, but the providers can contain more info, depending of each site. You can get these values directly in this way:\r\n```php\r\n$info = Embed::create('https://broadly.vice.com/en_us/article/even-a-tiny-bit-of-exercise-will-help-you-not-die-study-says');\r\n\r\n//Get the opengraph provider\r\n$opengraph = $info->getProvider('opengraph');\r\n\r\n//Get the data collected by opengraph\r\n$data = $opengraph->bag->getAll();\r\n\r\n//Or get a specific value\r\n$type = $opengraph->bag->get('type'); //article\r\n```"}}
{"actor":{"display_login":"oscarotero"}}