문제

Facebook 응용 프로그램을 개발 중입니다.아래 목록에는 열린 그래프에서 생성 된 사용자 정의 객체가 내 걱정이 거의 없습니다

  1. 특정 오브젝트 유형의 모든 객체 인스턴스가 고유 한 웹 페이지가 필요합니까?
  2. JS SDK를 사용하여 개방형 그래프 작업을 게시하는 경우 JS 함수에서 사용하는 오브젝트 URL ( "MyObjectRul")에서 사용하는 규칙이 있습니다. 예를 들어 :

    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 : URL과 동일해야합니까?

    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