0

I have built a simple webpage in PHP. I want to tell if users like my page (I placed a like button on it). It is not a Facebook app. I have seen this, but don't know how to use it with PHP. I don't know JavaScript at all. I tried pasting the code listed at the link into my page, but it didn't do anything useful.

A PHP solution would be preferable. I don't want to build a Facebook app, I just want to know if the Like button has been pressed.

Any help would be appreciated. Thanks!

Edit: Here's the link to my website, per answerer request: testingground.comyr.com

2 Answers2

0

Why don't you use the Facebook developer reference documentation? Without an API Access, I think there is no possibility to do that. How should you have access the private token what a random user liked?

George Cummins
  • 28,485
  • 8
  • 71
  • 90
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
0

Those Edge events are only usable to detect if the user clicked the Like Button right now, but you cannot check if he already liked your page. That is only possible with an App, and user authorization with the "user_likes" permission.

More information:

Community
  • 1
  • 1
andyrandy
  • 72,880
  • 8
  • 113
  • 130