javascript - Facebook like button redirect even after liked -


i using edge create function got question facebook button redirect?

fb.event.subscribe('edge.create',     function(response) {         location.href = 'http://yourdomain.com/post/id';     } ); 

so code working - page liked , redirect page,

but seems function when user haven't liked page

when user liked page, button "in liked state" , still want user redirect when click button

is there function still?

or how can check if user liked page, maybe in way can display button have redirect onclick them


Popular posts from this blog