[FBML] "Suggest To Friends" Code.

milestone

Regular Member
Joined
Aug 27, 2009
Messages
261
Reaction score
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>
 
sweet but don't you need to post the api key in there somewhere?
 
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:
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.
 
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 :/
 
Where can i find a giud for FBML? or a tutorial something like?
 
Its easy lol. Go into search and search for "static FBML" on facebook. Then just click "add to my page"
 
My page already had a suggest to friends options, whats the point of this???
 
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>
 
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.
 
For me it doesnt work.

Code:
[B]Bad Parameter[/B]

There was an error  understanding the request.
 
the "ajaxify" and "rel" elements dont work now, anyone know any solution?
 
Yup FB changed their TOS so that this is not allowed anymore.. So this wont work anymore but there are ways around it :)
 
Yup FB changed their TOS so that this is not allowed anymore.. So this wont work anymore but there are ways around it :)
Do you mean that is still possible opening invite friends box from a FBML tab?
 
Back
Top