Wednesday 15 April 2015

find verified status for a list of facebook pagenames -



find verified status for a list of facebook pagenames -

i have 782 facebook page links page names in excel file. want find out how many of them verified fb. started find solution. got few articles not relevant question , relevant had limited info or not understand. after searching bit more have home wrote code given below not echo verified status. how can utilize if need check 782 pagenames. please help...

<?php function verified($pagename){ // query in fql $fql = "select is_verified"; $fql .= " page username = '$pagename'"; $fqlurl = "https://api.facebook.com/method/fql.query?format=json&query=" . urlencode($fql); // facebook response in json $response = file_get_contents($fqlurl); homecoming json_decode($response); } $fb = verified('nokia'); echo $fb[0]->is_verified; ?>

edit: more info: searched , found can done using fql , api v21 both

https://graph.facebook.com/fql?q=select is_verified page username=nokia nokia/?fields=is_verified

here documentation

https://developers.facebook.com/docs/reference/fql/page/

i want help in getting code repaired , need if have check 782 pagenames. presently have set links in mysql mytable table , trying out things. help here appreciated.

i believe verified status not in page table (anymore), not show in docs: https://developers.facebook.com/docs/graph-api/reference/v2.1/page

also, fql deprecated , not work in newer apps anymore, see changelog: https://developers.facebook.com/docs/apps/changelog

i think there no way check if page verified, unfortunately. way how may possible fql using app created before apr 21st, 2010. is, before v2.1 came out, without fql.

facebook facebook-graph-api excel-vba facebook-fql facebook-php-sdk

No comments:

Post a Comment