1

Topic: URL of page

Hi,

I need to pull "current url of page", which string does it to?

update:
am tryin to get face buttun to autogenerate himself url for each "Like"- which will be on blogs/news/pics etc., can anyone help me?

<iframe src="http://www.facebook.com/plugins/like.php?href={STRING-TO-CURRENT-URL}
&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

-thx

Last edited by Rexi (2011-04-04 08:03:03)

2

Re: URL of page

Hey got the the same issue but but using the other script code

i left a post here
http://www.vldpersonals.com/forum/topic … book-like/

But no one has answered in days

If you find an answer please let me know also

3

Re: URL of page

ok Vlad helped me little bit so far, and this is what i got:

href={virtual_path}<?=$_SERVER['REQUEST_URI']?>

it does link correct link, even on face its likee www.something.com//somethinc.html

(note 2x // )

but it works. new potential members will have to register to read those pages anyway.

what it doesnt work is credentials.
since uri command dont pull credentials, this code up redirect every like on login/register page which is wrong.
(it means even every like is separately on the way to the server -from the server its not because this command redirect all different "likes" on same page - login)
so ... now to solve that one and voila smile

if anyone have some idea, please post smile

4

Re: URL of page

rexi is that with the "" or with out
and will it also work same for members pages
like http://www.freshmetropolis.com/mzoldan/

href="{virtual_path}<?=$_SERVER['REQUEST_URI']?>"

5

Re: URL of page

without, but there is session (credential) issue still hmm

actually we have 2 variables.

Title of page
and URL


title is what will be shown on fb when someone like and for blogs etc should be unique.
url identify "like" so it is counted and showed.

with this up, i have unique url for each "like", i have problem still with pulling title of url + i have problem with disappearing likes from news feeds on facebook hmm

6

Re: URL of page

I realize your still working on the issue but i put in the code and its say recommended 345K
are you having the same issue it should come up 0

7

Re: URL of page

<iframe src="http://www.facebook.com/plugins/like.php?href={virtual_path}<?=$_SERVER['REQUEST_URI']?>
&amp;layout=standard&amp;show_faces=false&amp;width=250&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe>

and add metas

and refresh page big_smile

i dont know.. as far as i see, some other cms-es have some kind of {url string}, but vld dont, so its problem.
am afraid we wont be able to use it hmm
at least not for dynamic pages

8

Re: URL of page

rexi

first get rid of the {virtual_path} and add you path
like http://www. freshmetropolis.com

two  add the ""

href="http://www.freshmetropolis.com<?=$_SERVER['REQUEST_URI']?>"

works better
still trying to figure everything else out smile

9

Re: URL of page

sorry i'm using the  other code disregard the ""

<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.freshmetropolis.com<?=$_SERVER['REQUEST_URI']?>" layout="button_count" show_faces="false" width="100" action="recommend" font="arial"></fb:like>

10

Re: URL of page

hm... am getting "You must specify a URL as part of this widget or API." with ur code.
u use pure iframe right? not XFBML

11

Re: URL of page

it also cuts the //

12

Re: URL of page

it makes it http://www.yoursite.com/member
instead of http://www.yoursite.com//member

Last edited by zoltar (2011-04-04 13:36:44)

13

Re: URL of page

u have msn? or skype?

14

Re: URL of page

working right now cant use either

15

Re: URL of page

where did u put:

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
  FB.init({
    appId  : 'YOUR APP ID',
    status : true, // check login status
    cookie : true, // enable cookies to allow the server to access the session
    xfbml  : true  // parse XFBML
  });
</script>

and did u set anything else to use this one?
i think at iframe was issuse cos it didnt had this cookie thing

16

Re: URL of page

You know what never added it 
when when you click the recommend or like button it open a new widow where the user logs in

im i wrong should i add it the facebook like works without it

17

Re: URL of page

so when someone "like" it shows on ur facebook news feeds?

with this code for me it works only if i add comment, but like dont work hmm

18

Re: URL of page

truth i dont really know if it works i have a problem connecting to facebook at work but as soon as i get home in about 3 hours i will let you know

19

Re: URL of page

ah, i wish someone more experianced would help us sad

20

Re: URL of page

me too!!!

21

Re: URL of page

but anyway were learning its a good thing!!!

22

Re: URL of page

ok i think i got it to work.

please keep in mind that fb news feeds update like.. every 15 min, or so. it think it depends on servers load.

as far as i see for now - both iframe and xfbml works good, however xfbml shows good url (no additional /, even its not so important since new users will have to login to see that page -and they will be directed to good url then)

i will let one link live and see how it acts and will inform u how its going

23

Re: URL of page

This works brilliantly. Thank you.

24

Re: URL of page

Ok, it works almost brilliantly...

I've added:

<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.MYDOMAIN.com<?=$_SERVER['REQUEST_URI']?>" layout="button_count" show_faces="false" width="100" action="recommend" font="arial"></fb:like>

to a number of templates so that the "Recommend" button appears only where I want it to appear eg blogs, so that members can post a particular blog to their Farceburke wall. The problem that I am having is that a completely random picture gets associated with the blog, even if the blog has it's own picture.

Any ideas on how to solve this?

To see what I mean, go to my site http://www.desperatesailors.com/blogs and post one of the blogs to your Farceburke wall.

Last edited by DesperateSailors (2011-08-07 10:18:26)

25

Re: URL of page

I suspect that I need to add something like this

{top.virtual_pic_path}{member_media_path}{entry_picture}

somewhere. But where?