[英]Facebook open graph publish stream/actions meta tags as params?
Is there a way to pass: og:url, og:title, og:image, og:description to rest without declaring it on metatags in an html page? 有没有一种方法可以传递:og:url,og:title,og:image,og:description可以休息而不在html页面的metatag上声明?
FB.api('/me/recipebox:cook', 'post',
{ recipe : 'http://www.example.com/pumpkinpie.html' });
https://developers.facebook.com/docs/opengraph/actions/ https://developers.facebook.com/docs/opengraph/actions/
I'm using push state/single-page application and it will be more easy using internal params. 我正在使用推状态/单页应用程序,使用内部参数会更容易。
Something like: 就像是:
FB.api('/me/recipebox:cook', 'post',
{ recipe : my_json });
Thanks 谢谢
Is there a way to pass: og:url, og:title, og:image, og:description to rest without declaring it on metatags in an html page? 有没有一种方法可以传递:og:url,og:title,og:image,og:description可以休息而不在html页面的metatag上声明?
No, because an Open Graph Object is a URL. 否,因为开放图对象是 URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.