简体   繁体   English

Facebook Graph API:发布链接-OAuthException

[英]Facebook Graph API: Publishing a link - OAuthException

In my website, users can share links of my app "objects" to their Facebook Wall. 在我的网站上,用户可以共享我的应用程序“对象”到其Facebook Wall的链接。

This is how I post links to Facebook using the Javascript SDK and their Graph API: 这是我使用Javascript SDK及其Graph API将链接发布到Facebook的方式:

var url = "/me/feed";
var message = "a user generated message"
var link = "link to an internal object of my app"
FB.api(url, "post", { message: message, link: link }, callback);

These are some of the metatags of my internal objects: 这些是我内部对象的一些元标记:

<meta property="og:video:type" content="text/html" />
<meta property="og:video" content="link to an internal object of my app"/>

Whereas I don't attach any Flash content, I'm encountering this error: 我没有附加任何Flash内容,但是遇到此错误:

error: (#100) flash objects must have the 'source' and 'picture' attributes
type: OAuthException

So there is something I don't really understand... 所以有些事情我不太了解...

The weirdest thing is that when I post the same link from Facebook Web Interface (and not through my app), everything occurs seamlessly... Indeed: I don't have any warnings or errors from the Facebook Linter tool. 最奇怪的是,当我从Facebook Web Interface发布同一个链接(而不是通过我的应用程序)时,一切都无缝发生了……确实:Facebook Linter工具没有任何警告或错误。

Thanks in advance for your help 在此先感谢您的帮助

If you have videos you should check at what nrj12 did for example (see here http://www.nrj12.fr/nrj12-replay-3276/nrj-12-562/media/video/494835-avec-rod-janois.html ) 如果您有视频,则应检查一下nrj12的功能(请参阅此处http://www.nrj12.fr/nrj12-replay-3276/nrj-12-562/media/video/494835-avec-rod-janois。 html

<meta content="Nrj 12 Avec rod janois - NRJ12.fr" property="og:title">
<meta content="http://www.nrj12.fr/nrj12-replay-3276/nrj-12-562/media/video/494835-avec-rod-janois.html" property="og:url">
<meta content="fr_FR" property="og:locale">
<meta content="video.tv_show" property="og:type">
<meta content="1327098374" property="video:release_date">
<meta content="169879703048651" property="fb:app_id">
<meta content="Sport auto, nouveautés, tests, exclusivités... KILOMETRE 12, c est le nouveau magazine indispensable présenté par Anne Denis pour tout savoir sur le monde de l auto. Mais c est aussi des rubriques déc..." property="og:description">

<meta content="223" property="og:video:height">
<meta content="398" property="og:video:width">
<meta content="application/x-shockwave-flash" property="og:video:type">
<meta content="http://media.nrj.fr/436x327/mogador/00152885-minipicto-12-0_prod_12229.jpg" property="og:image">

You video:type looks weird too me cause HTML is not a video type. 您的video:type看起来也很奇怪,因为HTML不是视频类型。

Please provide the URL of the content you wish to publish if you want to get constructive help. 如果您想获得建设性的帮助,请提供您想要发布的内容的URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM