1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook Open Graph

Discussion in 'HTML & JavaScript' started by sebyku, Apr 11, 2013.

  1. sebyku

    sebyku Junior Member

    Joined:
    Mar 9, 2013
    Messages:
    163
    Likes Received:
    22
    Occupation:
    Facebook Application Develope
    I want to use open graph for 2 actions on my website: one for rating a video and one for viewing a video


    So I must use the 2 actions in same page. For using this I must have 2 og.type but this option doesn't exist.


    So how can I do this on same page?


    First I have:
    Code:
    <meta property="og:type" content="videorom:object" />
    FB.api('/me/videorom:voted_a_article',
    'post',
    { 
    object: data_post_link+'?ex=257957417674441' 
    },function(response) {
       if (!response || response.error) {
          console.log(response.error);
       } else {
          console.log('Ewww!');
       }});
    
    Another problem I get was when I posted on account with this. Example:


    This is how I have

    V19Rl.png


    And I want exactly like this


    This is how I want

    oTQmc.png

    How can I reproduce?

    SOLVED: It seens that if the picture from og is smaller than 200/200px the layout automatic change.
     
    Last edited: Apr 11, 2013
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Stop making the same thread around the forum. I removed the other ones, make sure this is the last one.
     
  3. sebyku

    sebyku Junior Member

    Joined:
    Mar 9, 2013
    Messages:
    163
    Likes Received:
    22
    Occupation:
    Facebook Application Develope
    OK sorry. I was thinking if is on other category other people will help me .

    Another example:

    app-story-facebook.png
     
    Last edited: Apr 11, 2013