2012-07-10 78 views
0

在Facebook的圖形,我有一個內置的Facebook對象創建了名爲電影其中有一個名爲「標題」,「說明」等對象的屬性和我用這個使用呼叫自定義Facebook的行動

https://graph.facebook.com/me/[ns]:watch?movie=http://www.example.com/movie.html&desc='nice movie'&___等。

現在,我創建了一個名爲「歌劇」的自定義對象和屬性的形式爲:

og:url - URL 
og:title - String 
og:image - Image[] 
og:description - String 

我將如何使用這使得在用戶牆後是「用戶」看着'歌劇'_

我可以使用og標記作爲請求URL的一部分嗎?或者我可以用它作爲:

https://graph.facebook.com/me/[ns]:watch?opera=http://www.example.com/opera.html&title='opera title'_等等

我在爲影片對象用於如何以同樣的方式使用它相當混亂。

回答

1

您不需要在通話中包含標籤,或者您不需要。

如果你想有不同的頁面(對象)opera(類型),那麼你需要通過創建一個新的對象類型並創建該類型的頁面(對象)在你的應用程序設置中添加它。

查看食譜例如:http://developers.facebook.com/docs/opengraph/objects/

<meta property="fb:app_id"   content="YOUR_APP_ID" /> 
<meta property="og:type"    content="recipebox:recipe" /> 
<meta property="og:title"   content="Chocolate Chip Cookies" /> 
<meta property="og:image"   content="http://www.example.com/cookies.png" /> 
<meta property="og:description"  content="Best Cookies on Earth!" /> 
<meta property="recipebox:chef"  content="http://www.example.com/john_smith"/> 

如果你的頁面(對象)定義了它在<head>部分meta標籤,那麼你應該看到標題,描述等,這是數據從拉爲你的行動呼叫。

不幸的是,自定義觀看動作

意見書將不再被接受。

所以你需要使用內置的手錶動作me/video.watches,/me/[ns]:watch將不被接受。

+0

謝謝您的回答phwd .. – sharath 2012-07-10 20:22:39