So what I'm trying to do is get the content in <div id=content> to show if the page has been "liked". I got it to work if the user has just pressed the like button, but if the page refreshes, or the user comes back at a later time, it remembers that the user likes the page (of course), but it does not show the content in <div if=content> unless the user unlikes and then likes the page again. Im guessing this is because what the code is referencing is some sort of click event, rather than if the page is liked or not.

edge is an element used to flag a like in real time, not a previous one.

Basically you would use edge to thank the user for having just liked something via ajax or with an alert.

jackthe7th
—
2011-06-10T00:59:36Z —
#3

yeah, so how would i do it for a previous one?

Ted_S
—
2011-06-10T01:15:58Z —
#4

[edited]

You can parse the Graph API if you get permission from the user. Upside of this is working on specific pages, downside is the permission bit and code involved. I'm not sure if there's a solution that's easier for an entire site; searching around did not yield much on a direct path.