English 中文(简体)
用Facebook的开放图示标制造物体
原标题:Creating objects with the Facebook Open Graph API

我正在利用谷歌应用引擎主办我的Facebook应用程序,因为它是配额方面最慷慨的。 我愿利用《开放图示》出版行动(参看皮萨、 co立鸡、 co等)。

既然“Facebook SDK”现在被贬低,我很想知道,有人是否能够解释我对它能够接触到什么特征的看法是否有限。 似乎我可以利用 Java本科来认证用户、公布行动等。

这里是我对口供的html客户部分的元件:

<meta property="fb:app_id"      content="250027595026486" /> 
<meta property="og:type"        content="socialdocking:chemical" /> 
<meta property="og:url"         content="http://beta2.socialdocking.appspot.com/" /> 
<meta property="og:title"       content="Sample Chemical" /> 
<meta property="og:description" content="Some Arbitrary String" /> 
<meta property="og:image"       content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" />

我怎么能不从服务器中人工书写化学品,对甲型化学品有不同的价值? 在公布行动之前,是否有可能利用非洲宇宙航空研究开发机构收回价值并改变“Sample Chemical”的价值? 换言之,我是否必须遵守一个开放式图表“目标”由单一网页代表的设计,或者我能否使用一个单一网页同时代表多个目标?

感谢!

最佳回答

You cannot set meta tags dynamically with Javascript before Facebook scrapes them. You must do it from server side. However, what you want to accomplish here doesn t require you to use the Facebook SDK. Here is a PHP example on how to do it: Generating Facebook Open Graph meta tags dynamically I m sure you can transfer that code into Python.

问题回答

当Facebook的拖网者袭击URI,代表并识别你的露面标(即一种化学品)时,它将把该数据与URI作为识别符号储存。

As such, you would have a URI http://example.com/chemicals/1 render

...
<meta property="og:title"       content="Potassium Nitrate" />
<meta property="og:description" content="totse.com was really cool" />
...

and http://example.com/chemicals/2 render

...
<meta property="og:title"       content="Whateverium Sulfate" />
<meta property="og:description" content="This makes things go boom." />
...

更清楚这一点,这里指的是发生的事情。 这是一个动态的网页,它响应了作为探测贵国化学数据库参数的《国际持久性有机污染物公约》末的数字:(ERB例)。

...
<meta property="og:title"       content="<%= @chemical.name %>" />
<meta property="og:description" content="<%= @chemical.description %>" />
...




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签