هل يمكن إنشاء كائنات الفيسبوك المفتوحة في الفيسبوك ديناميكيا؟

StackOverflow https://stackoverflow.com/questions/9504176

سؤال

أنا أضع تطبيق تطبيق Facebook.لدي كائن مخصص تم إنشاؤه في الرسم البياني المفتوح، أدناه المدرج عدد قليل من مخاوفي

  1. هل تتطلب كل مثيلات كائن تحت نوع كائن معين صفحة ويب فريدة من نوعها؟
  2. أنا أستخدم JS SDK لنشر إجراءات الرسم البياني المفتوح، هل هناك أي قاعدة ترتكب عنوان URL للكائن ("myoebjectrul" في التعليمات البرمجية أدناه) في وظيفة JS للحصول على EG:

    fb.api ('/ me / myapp: myabject= myobjecturl & access_token= myaccesstoken'، 'بريد'، {كشط: صحيح}، giveacodicetagpre. يجب أن يكون

    نفسه مع 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