开发者

Meta tag og:title inside Facebook Application is ignored

开发者 https://www.devze.com 2023-01-30 15:06 出处:网络
I have a Facebook Application with 开发者_运维知识库an iframe based canvas that contains a like button (also iframe), in the head of my iframe i\'ve specified the standard meta tags (og:title, og:url,

I have a Facebook Application with 开发者_运维知识库an iframe based canvas that contains a like button (also iframe), in the head of my iframe i've specified the standard meta tags (og:title, og:url, og:site_name) and they seem to work fine (the information is displayed correctly in the profile wall) except for the title. I've tested various links of the app with the Facebook URL Linter and the ug:title tag is ignored completly.

Have any of you had any trouble with the open graph tags inside facebook applications?

Any ideeas are apreciated, thanks.


I've tried every possible combination and suggestion in adding og meta tags to my page, but none of them worked. When testing URL with facebook URL Linter it always returned default values defined on application admin page. Like it doesn't see og meta tags. And what was more interesting is that when I look the page source, og meta tags existed but haven't been evaluated by facebook or linter.

Now, in my canvas page I defined login/authentication (and depending redirection etc) at the top, before html and og meta tags definition, and that was the main problem.

If you perform FB login redirection/authentication before providing og meta tags, then FB crawlers/linter will not be able to detect your meta info and will try to auto-fill it.


I'm having the same problem in my app http://apps.facebook.com/tripline It seems that Facebook doesn't process links to pages inside apps the same way as pages they hit directly.

You can see the difference in the URL Linter:

  1. The og:url on the canvas page: http://apps.facebook.com/tripline/trip.php?id=2015071615051003BEE6FBED6F531103 (og:title is ignored, get trip.php instead)

  2. The url to the actual page loaded in the iframe: http://www.tripline.net/api/fbcanvas/trip.php?id=2015071615051003BEE6FBED6F531103#frame-top (og:title correct, but can't link to this because it's not in the frame)

  3. The page on the main site: http://www.tripline.net/trip/The_Boston_Freedom_Trail-2015071615051003BEE6FBED6F531103 (og:title correct, if i can't figure things out, i'm just going to set the og:url on the canvas page to this)

Not really an answer, but at least you know you're not alone or crazy...which is worth something.

0

精彩评论

暂无评论...
验证码 换一张
取 消