我正在开发一个Facebook应用程序。我有一个在打开的图表中创建的自定义对象,下面列出了我的担忧少数

  1. 在特定对象类型下执行每个对象实例需要唯一的网页?
  2. 我正在使用js sdk到发布打开的图形操作,是有没有规则的,对象URL(以下代码中的“myObjectrul”)我在js函数中使用,例如:

    fb.api('/ me / myapp:myaction'+'?myobject= myobjecturl&Access_Token= MyAccesstoken', '邮政', {scrape:true},

             function (response) {
                 var msg = 'Error occured';
                 if (!response || response.error) {
                     if (response.error) {
                         msg += "\n\nType: " + response.error.type + "\n\nMessage: " + response.error.message;
                     } alert(msg);
                 } else {
                     alert('Post was successful! Action ID: ' + response.id);
                 }
             });
    
    .

    应该与OG的OG:URL在对象中的METATAG中?

    1. 我们可以通过任何查询字符串以及可以在对象页面中检索的对象URL吗?

    2. 如何用不同的对象属性发布相同的对象类型(例如,不同的图像,不同的URL等)

      任何帮助非常感谢。

有帮助吗?

解决方案

The answer is yes. Every instance of an object maps to a page, be it html, C#, php... whatever. So if you are a jquery ajax dynamic programmer you will have to shift your architecture or go without open graph.

My company http://www.fuhshnizzle.com uses jquery, ajax, Amazon S3 to create video playlists that run in the player. This is an extremely lightweight architecture. Recently we allocated resources to publish playlists directly to the open graph. Our senior architects did not initially grasp that this was not dynamic. They assumed they could define the objects like C# classes for example, and then instantiate them dynamically at publish time.

There was quite a bit of consternation that in our case we would have to publish one web page per playlist and then the issue came up as to CRUD. What if the user changes the playlist, deletes it, etc. In essence one would need to turn html pages into the equivalent of database records.

From a cost/benefit perspective this is ROUGH. If we have 100,000 playlists created daily do we now have to publish and maintain 100,000 web pages? The answer is YES. That is a very expensive proposition that seems to ignore the power of the web to create content on the fly via parameters and scripts. Having to create static content was a deal breaker for my company after many emotional meetings.

Our chief architect stormed out muttering something about the "tail wagging the dog." For what it is worth my thoughts are this is a business decision that must be made depending on your business model.

Publishing Objects

Open Graph Objects are simply your web pages with Open Graph meta tags.

Generating Facebook Open Graph meta tags dynamically

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top