0

これは私のオブジェクトの例です:

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# openfever: http://ogp.me/ns/fb/openfever#">

 <meta property="fb:app_id"                      content="260740230708137" /> 
 <meta property="og:type"                        content="openfever:plan" /> 
 <meta property="og:url"                         content="http://app.feverup.com/openFever/index.html" /> 
 <meta property="og:title"                       content="Sutton Club" /> 
 <meta property="og:image"                       content="http://www.gettyimages.es/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg" /> 
 <meta property="openfever:precio"               content="18€" /> 
 <meta property="openfever:fevers_dentro"        content="12" /> 
 <meta property="openfever:porcentaje_de_chicas" content="60%" /> 
 <meta property="openfever:price" content="40€" />

そして、これはアクションを公開するコードです:

FB.api(
                '/me/openfever:getin',
                'post',
                { 
                    plan: 'http://app.xxx.com/openxxx/index.html',
                    //place: 'suttonoficial', 
                    place: 'Opiummar',
                    tags: '728885016',
                },
                function(response) {
                   if (!response || response.error) {
                      console.log(response.error);

                   } else {
                      console.log(response.id);
                   }
        });

アクションとオブジェクトが公開されます。しかし、私には問題があります。さまざまなオブジェクトを公開するにはどうすればよいですか? それは、価格、イメージを変更することを意味します..

オブジェクトのプロパティを変更しても、オブジェクトは更新されません。しかし、オブジェクトデバッガーを使用すると、公開されたすべてのオブジェクトが更新されます。1つだけではありません。

私の質問: 複数のオブジェクトを公開することは可能ですか?

4

1 に答える 1

0

さまざまなオブジェクトを公開するにはどうすればよいですか?

別のURLでデータを提供することにより…</p>

Open Graph オブジェクトは基本的に単なるURLです。したがって、複数のオブジェクトが必要な場合は、複数の URL を設定し、それぞれに適切な OG メタ タグ セットを含む HTML ドキュメントを配信させます。

于 2012-07-30T10:29:38.010 に答える