1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

Buying Help with the facebook share button

Discussion in 'Programming' started by dimva, Jan 15, 2010.

  1. #1
    Hey,

    I run a reward site and I want to add a facebook share button (where users can share their unique url on facebook).

    Currently the share button just takes www.mydomain.com/members.php (which where the button is located) and publish on facebook, but I want to do so that the facebook share button takes the unique refeeral url from the member which is logged in.

    So now it publish www.mydomain.com/members.php for every member.

    I want:
    For exmaple member number 1 is logged in so when he push the facebook share button the url become www.mydomain.com/?refeeral=1 so the facebook share button is unique for every member.
    Member number 44 is logged in so when he push the facebook share button the url become www.mydomain.com/?refeeral=44 so the facebook share button is unique for every member.

    Ive seen other sites with this feature and I want the same.

    Please help me out and tell me how to do it :)

    More info about the button:

    http://www.facebook.com/facebook-widgets/share.php

    Thanks,
    Dimva
     
    dimva, Jan 15, 2010 IP
  2. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    
    <a href="http://www.facebook.com/sharer.php?u=http://mydomain.com/member.php?referal=<? echo $_GET['referal']; ?>&t=<Title of content>"><img src="img/img.gif"></a>
    
    Code (markup):
    Use that change the referal in the $_GET to the value which is set for your referal id and change the title of content to something relevant. Should work.
     
    NetworkTown.Net, Jan 15, 2010 IP
  3. dimva

    dimva Active Member

    Messages:
    680
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    80
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Will try that and see if it works.
    Thanks mate!
     
    dimva, Jan 15, 2010 IP
  4. PHPScriptingServices

    PHPScriptingServices Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    There are many ways you can accomplish this... You can create the share button so that it will post a short story/advertisment that will refer to your website... This would probably suit you best as you would be able to spark some more interest... Please let me know if you are interested in this short script for $5...
     
    PHPScriptingServices, Jan 17, 2010 IP