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

How to make link in FBML to "become a fan" and "suggest to friends"?

Discussion in 'FaceBook' started by jaerehan, Feb 5, 2010.

Thread Status:
Not open for further replies.
  1. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    i would like to make link for "become a fan" and "suggest to friends" in my fbml site in a facebook page. but cant find anything about it on the interwebz. Anyone knows what code should i use to make it so the popup would come up?
     
  2. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    damn, isnt there any pro fbml "coder"?:p
     
  3. soberealtor

    soberealtor Junior Member

    Joined:
    Jun 8, 2009
    Messages:
    134
    Likes Received:
    34
    within the page? there is already defaults for this...or do u want to create a link that when u click on it automatically makes u a fan?
     
  4. dinanipedro

    dinanipedro Newbie

    Joined:
    Jan 26, 2010
    Messages:
    25
    Likes Received:
    15
    Location:
    Hvar
    Home Page:
    i managed to do this by copying the original fb html code found on the fanpage.
    you can check :
    Code:
    http://facebook.com/hvaragency
    i hope this is what you mean
     
    • Thanks Thanks x 1
  5. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    i will check this out dinanipedro.

    i will try to explain again, lets say i have a fb page. in this i have a custom FBML page named SOMETHING. now in this SOMETHING i want to make a custom image-link to make them fan, and an other custom image-ink to use "suggest to friends" feature..
     
  6. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    dinanipedro thats it! how can i do that?? i want to do the same with become a fan also!
     
  7. dinanipedro

    dinanipedro Newbie

    Joined:
    Jan 26, 2010
    Messages:
    25
    Likes Received:
    15
    Location:
    Hvar
    Home Page:
    I am sending you the code I added - it needs a bit of cleaning up - and replacement of the id of course other than that this should work - the way i got it was simple - on your fb fan page select the suggest to friends line beneath the logo- view selection source, copy it and then test it in fbml developer until you get satisfying code....

    I havent found the code for "become a fan yet though!"
     
    • Thanks Thanks x 1
  8. joemc

    joemc Junior Member

    Joined:
    Jan 11, 2010
    Messages:
    100
    Likes Received:
    14
    Could you send it to me too? Thanks :)
     
  9. dinanipedro

    dinanipedro Newbie

    Joined:
    Jan 26, 2010
    Messages:
    25
    Likes Received:
    15
    Location:
    Hvar
    Home Page:
    Code:
    pm me 4 code
    Of course you have to change the id********** with your fanpage id
     
    • Thanks Thanks x 3
    Last edited: Feb 6, 2010
  10. WoosterOh

    WoosterOh Junior Member

    Joined:
    Mar 29, 2008
    Messages:
    173
    Likes Received:
    11
    Code:
    <a ajaxify="/ajax/pages/fan_status.php?fbpage_id=0000000000&add=1&reload=1&preserve_tab=1&use_primer=1" rel="async-post"  href='#'  style="cursor: pointer;"></a>
    Could try that one. Add in your image.
     
    • Thanks Thanks x 2
  11. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Thanks dinanipedro, its working!
     
  12. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    How to use this? im just experimenting but works, give me some more light :)
     
  13. WoosterOh

    WoosterOh Junior Member

    Joined:
    Mar 29, 2008
    Messages:
    173
    Likes Received:
    11
    that is a normal link, change the 000000000 to your page id.

    Add your image before </a>

    Something like

    Code:
    <img src="mydomain.com/myimage.jpg">
    The image will be linked, they click it, they are a fan. If you want the actual fan button and icon, I can give you that, they are spans with ids pulling from their css file.
     
    • Thanks Thanks x 2
  14. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    its ok i made it from fb's button but its custom a bit, ill try this thanks for the detailed code ( i have no idea about what is spans and css :p )
     
    Last edited: Feb 5, 2010
  15. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Worked, all done, repped you 2 :)
     
  16. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Can you help out in one more thing? i want an other button(img) to make it clickable and after they click on it some content reveal under it........ how it could be done?
     
  17. WoosterOh

    WoosterOh Junior Member

    Joined:
    Mar 29, 2008
    Messages:
    173
    Likes Received:
    11
    try

    Code:
    <a ajaxify="/ajax/pages/fan_status.php?fbpage_id=0000000000&add=1&reload=1&preserve_tab=1&use_primer=1" rel="async-post"  href='http://yourwebsite.com/'  style="cursor: pointer;"></a>
    You might want them to stay there, so just add your page link
     
  18. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU

    ok, seems again my shit english breaks the thing, i meant some content is just 3-4 image with links to outside of facebook :)
     
  19. glhawkins

    glhawkins Newbie

    Joined:
    Nov 19, 2009
    Messages:
    26
    Likes Received:
    0
    Occupation:
    Student
    Location:
    Santa Barbara
    What confuses me is the code

    Code:
    app_id=2353941073
    Why does there need to be an app_id when its just a "fan page"???

    Also I tried the code above and switched it to my page id, however, when I click my link to invite friend to my fanpage, no one shows up in the box to invite. So its just an empty "invite my firends" box...How do I fix this?

    I just need to figure this out because I'm making a page for his company, and asked me to set it up/figure it out. Any help would be appreciated.
     
  20. youzap777

    youzap777 Newbie

    Joined:
    May 13, 2010
    Messages:
    1
    Likes Received:
    0
    Hello i am new here
    and i need your help plz
    i want to add a FALSH to my Facebook Page
    the flash is on an other website
    can you tell me how to do that plz
    i thing i can do it using FBML but i dont know the code to use
    thx a lot
     
Thread Status:
Not open for further replies.