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

[FBML] "Suggest To Friends" Code.

Discussion in 'FaceBook' started by milestone, Feb 28, 2010.

  1. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    I've been asked for this atleast 20 times by PM tonight, so I thought I would just post it here :)

    I haven't managed to get it to auto select all friends yet, but I think im getting closer. I've got 3 other guys working on it with me in about 3 different languages. Lol.

    Anyway, heres the code for the suggest to friends box.

    Hit thanks if this helps you please :)

    Code:
    <a href="#" ajaxify="/ajax/social_graph/invite_dialog.php?class=FanManager&node_id=PAGE_ID_HERE" class=" profile_action actionspro_a" rel="dialog-post">Suggest to Friends</a>
     
    • Thanks Thanks x 11
  2. jonny110

    jonny110 Regular Member Premium Member

    Joined:
    Feb 27, 2007
    Messages:
    279
    Likes Received:
    253
    sweet but don't you need to post the api key in there somewhere?
     
  3. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    the api key to what?.. this is for pages, not apps..

    EDIT: My bad, i guess i didnt test this enoguh, your right, it doesnt work. Anyone know how to fix it?.. im not too sure.
     
    Last edited: Mar 1, 2010
  4. Gibbzee

    Gibbzee Regular Member

    Joined:
    Jun 17, 2009
    Messages:
    399
    Likes Received:
    142
    Code:
    <a rel="dialog-post" class=" profile_action actionspro_a" ajaxify="/ajax/social_graph/invite_dialog.php?class=FanManager&node_id=PAGE_ID_HERE" href="#"  onclick='go(); return false;'>Suggest to Friends</a>
    This works for me.
     
  5. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    Have you actually tested it?.. i thought mine worked, but when i used it and suggested to one of my othetr accounts, the other account never recieved the request :/
     
  6. JackSparrow

    JackSparrow Supreme Member

    Joined:
    Mar 24, 2007
    Messages:
    1,469
    Likes Received:
    2,054
    Occupation:
    Semi-Employed Pirate
    Location:
    search 4 blackhatsparrow
    Home Page:
    This looks good, where do you put this code?
     
  7. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    in FBML pages
     
  8. Big_0n3

    Big_0n3 Senior Member

    Joined:
    Dec 2, 2009
    Messages:
    1,109
    Likes Received:
    85
    Where can i find a giud for FBML? or a tutorial something like?
     
  9. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    Its easy lol. Go into search and search for "static FBML" on facebook. Then just click "add to my page"
     
  10. JackSparrow

    JackSparrow Supreme Member

    Joined:
    Mar 24, 2007
    Messages:
    1,469
    Likes Received:
    2,054
    Occupation:
    Semi-Employed Pirate
    Location:
    search 4 blackhatsparrow
    Home Page:
    My page already had a suggest to friends options, whats the point of this???
     
  11. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    This works. Tested. Also has a nice button :)

    Code:
    <a rel="dialog-post" class="UIButton UIButton_Gray UIActionButton" ajaxify="/ajax/social_graph/invite_dialog.php?class=FanManager&node_id=PAGEID" href="#">
                                <span class="UIButton_Text"><span class="UIButton_Icon UIButton_IconNoSpriteMap" style="background-position: 0pt -385px;"></span>Invite Your Friends</span>
                            </a>
    
     
    • Thanks Thanks x 1
  12. Gibbzee

    Gibbzee Regular Member

    Joined:
    Jun 17, 2009
    Messages:
    399
    Likes Received:
    142
    Its so you can add it into a separate tab to make it more prominent or to make people think they need to invite their friends to 'claim' something.
     
  13. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    If you have a full FBML Tab, you cannot see the suggest to friends link on the left..
     
  14. Big_0n3

    Big_0n3 Senior Member

    Joined:
    Dec 2, 2009
    Messages:
    1,109
    Likes Received:
    85
    For me it doesnt work.

    Code:
    [B]Bad Parameter[/B]
    
    There was an error  understanding the request.
    
     
  15. milestone

    milestone Regular Member

    Joined:
    Aug 27, 2009
    Messages:
    261
    Likes Received:
    50
    You didnt change the page id..
     
  16. romil2009

    romil2009 Regular Member

    Joined:
    Jun 17, 2009
    Messages:
    230
    Likes Received:
    20
    thanks for sharing such useful information
     
  17. ShOwA

    ShOwA Regular Member

    Joined:
    Feb 7, 2010
    Messages:
    300
    Likes Received:
    69
    It doesn't run anymore
     
  18. elissa25

    elissa25 Newbie

    Joined:
    Sep 28, 2009
    Messages:
    20
    Likes Received:
    5
    the "ajaxify" and "rel" elements dont work now, anyone know any solution?
     
  19. dejanlesi

    dejanlesi Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 27, 2009
    Messages:
    603
    Likes Received:
    131
    Yup FB changed their TOS so that this is not allowed anymore.. So this wont work anymore but there are ways around it :)
     
  20. ShOwA

    ShOwA Regular Member

    Joined:
    Feb 7, 2010
    Messages:
    300
    Likes Received:
    69
    Do you mean that is still possible opening invite friends box from a FBML tab?