mysql - Server-side functionality depending on whether a user "likes" a Facebook page with PHP/JS SDK's -
i trying execute mysql database query on website depending on whether user has "liked" facebook page. have found few ways this, using php , js sdk's, namely using api /user_id/likes/page_id.
when user has liked page, want add value data in database, thought of adding function called each time user visits site, , if it, add value database , have boolean value in there doesn't keep adding value. however, guessed waste of calls server if happened every time, not sure how go setting up, ideas?
unless dealing huge volumes of users wouldn't worry because check on 1 row of indexed mysql table should quick (200 milliseconds or less entire request on normal internet connection.). , if data need stored on server, how possibly avoid trip server? unless store data in cookie.
Comments
Post a Comment