On my Website in PHP, Check if user liked my Facebook page -


if visitor website logged facebook, want check if have 'liked' facebook page. if not want ask them 'like' (e.g. via overlay popup). don't want prompt request users have 'liked' page.

of course point check 'in background' without asking users extended permissions, if wanted user use app.

i have found several references on how accomplish via facebook's php sdk, seems referring older version of sdk, , no longer work.

i total n00b when comes stuff. i've been able manage setup sdk environment:

require_once 'src/facebook/autoload.php'; //create facebook service $fb = new facebook\facebook ([     'app_id' => '-----------------',     'app_secret' => '--------------------',     'default_graph_version' => 'v2.4'     ]); 

what method/methods can use new sdk above check this? in old methods found check done via $fb->api("/me/likes/page_id");, , page's id referenced, said no longer works.

is there equivalent method can used new sdk? , if so, provide me exact code it?

or looking no longer supported facebook?

extreme , gratitude can put me on right path!


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -