beanymanuk Posted April 20, 2011 Share Posted April 20, 2011 I am trying to allow a user to proceed to another page but only after a user has clicked a Facebook like button and a check has been done to check if the currently logged in user has liked the specific Facebook Page. How can I go about this? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/234259-facebook-like-button-checking-if-someone-has-liked-certain-page/ Share on other sites More sharing options...
kney Posted April 20, 2011 Share Posted April 20, 2011 Just an example You have certain newsposts in ur database with fields (newsID, date, title, content). You will also have to have a table with the preferences (so wether you like something or not).. with fields (preferenceID, userID, newsID, like) The standard value for like = 0.. whenever you press a like button it remembers the user who clicked it, the post itself and changes like to 1.. etc i hope that helps Quote Link to comment https://forums.phpfreaks.com/topic/234259-facebook-like-button-checking-if-someone-has-liked-certain-page/#findComment-1204026 Share on other sites More sharing options...
beanymanuk Posted April 20, 2011 Author Share Posted April 20, 2011 my site doesn't have any login I want it linked into Facebook so if the user is signed into google on their computer they can click the like button on my site if they havn't already done so. Then after they have clicked like and this is recognized by Facebook I want to allow the user to proceed to another page. Quote Link to comment https://forums.phpfreaks.com/topic/234259-facebook-like-button-checking-if-someone-has-liked-certain-page/#findComment-1204056 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.