facebook-opengraph

Open Graph SMS rich messages on Android and iOS

点点圈 提交于 2020-01-02 05:23:29
问题 I am trying to leverage the rich text messages with open graph meta tags. So I have included my meta tags in my website head and it passes all of the Facebook debug and iOS API validation tool. Yet when I text the link to people either on Android or iOS it doesn't often work. It works typically with Facebook messenger Does anyone know if this is a cell carrier issue or do I have something configured wrong? <meta property="fb:app_id" content="********" /> <meta property="og:type" content=

Dynamic Image for Facebook Opengraph og:image meta tag

北慕城南 提交于 2020-01-01 06:08:06
问题 I am trying to share an image from my website on facebook. The image can be dynamic, but other meta will remain the same. Is there a way I can have dynamic data in OG:IMAGE tag, or will I have to go with the other option of FB Post APIs. 回答1: Yes and no. Facebook scrapes your site once, and cached the metadata that it finds, unless you specifically go here and force the scraper to crawl your site again. The cache does generally expire (perhaps after 1-2 days?), so when requested again outside

Opengraph W3C valid?

混江龙づ霸主 提交于 2020-01-01 04:40:08
问题 I would like to know if the opengraph markup is W3C valid, I'm getting the following error when I try to validate it: Line 14, Column 17: there is no attribute "PROPERTY" <meta property="og:site_name" content="sitename"> In case it's not valid, will it impact my pagerank and other search engines algo? Is it possible to cloak those properties? 回答1: It's not valid in the normal HTML doctypes, but there is a doctype you can use to validate XHTML documents including Open Graph: <!DOCTYPE html

Facebook open graph meta tags maximum content length

自古美人都是妖i 提交于 2019-12-31 10:19:14
问题 Does anyone know the maximum valid length for each of Facebook's open graph meta tags? The description of the meta tags on http://ogp.me/ does not list maximum lengths, only general descriptions such as "A one to two sentence description of your object" for the og:description meta tag. From what I understand, there is no maximum content length for meta tags in general, just recommendations to keep them under certain lengths for SEO reasons. I'd be curious to know if there is a hard limit and

Facebook open graph meta tags maximum content length

懵懂的女人 提交于 2019-12-31 10:19:05
问题 Does anyone know the maximum valid length for each of Facebook's open graph meta tags? The description of the meta tags on http://ogp.me/ does not list maximum lengths, only general descriptions such as "A one to two sentence description of your object" for the og:description meta tag. From what I understand, there is no maximum content length for meta tags in general, just recommendations to keep them under certain lengths for SEO reasons. I'd be curious to know if there is a hard limit and

Android Facebook-sdf Exception: Failed to generate preview for user

≯℡__Kan透↙ 提交于 2019-12-31 05:44:06
问题 i'm developing a simple android app and i want post a status in facebook using OpenGraphObject and OpenGraphAction. if i use new FacebookDialog.ShareDialogBuilder(this) i have no problem, but when i'm using FacebookDialog.OpenGraphActionDialogBuilder i got the error: 01-09 15:56:29.594 11439-11439/simov.project2.yourcity E/Activity﹕ Error: com.facebook.FacebookException: Failed to generate preview for user. java public void test(int position){ File f = (File)mImageAdapter.getItem(position);

Execute Javascript when Facebook crawls website

血红的双手。 提交于 2019-12-31 05:34:21
问题 I use javascript function below to move embed Facebook Meta data to head, This works fine for visitors but not when FB crawls the page, How can i execute this when Facebook crawling the page ? function metaBodyToHead() { var head = document.head, metaTAGs = document.getElementsByTagName( "DIV" ); for( var i = 0, ln = metaTAGs.length; i < ln; i++ ) { head.appendChild( metaTAGs[ i ].parentNode.removeChild( metaTAGs[ i ] ) ); } } metaBodyToHead(); I need to get the meta data in head when

Facebook Open Graph Single Page Apps

倾然丶 夕夏残阳落幕 提交于 2019-12-30 07:12:30
问题 I have built a single page application using backbone js. I have separate backbone url "routes" for various application states and dynamic content (e.g. books), but essentially Facebook will only ever see the index page. The following SO question seems to provide an interesting approach to providing physical open graph URLs for dynamic content: Multiple Facebook opengraph objects on the same page How have other developers approached using open graph tags on dynamic pages, specifically in

Facebook Debugger lint tool gets HTTP 206 - doesn't detect Open Graph meta tags (others tools do)

北战南征 提交于 2019-12-29 01:38:17
问题 I believe my site has the correct markup for Facebook & Open Graph meta tags. But checking Facebook's linter shows that none of the tags are being detected. You can see for yourself here: http://developers.facebook.com/tools/debug/og/object?q=goodloesolitaire.com When I use a different site, the tags are found: http://www.opengraph.in/?url=goodloesolitaire.com&format=html I went through the similar questions and none of those check out. Any ideas on why Facebook's debugger might see nothing?

How to do Facebook Open Graph friendly meta tags with client-side template engines like AngularJS, Mustache, Handlebars

依然范特西╮ 提交于 2019-12-28 15:58:22
问题 According to my testing, Facebook's crawlers do not render client-side templates like a browser. I want to avoid a webserver and building HTML files for Open Graph objects at all costs. I want to generate the meta tags on the fly via the URL, but it seems Facebook cannot do this. Can someone from Facebook please confirm? I asked the head of Open Graph at #mobiledevcon and she said that Facebook can render stuff like {{value}} My meta tags are as follows, and they render fine in every browser.