获取应用程序用户的信息 - Facebook-GRAPH API-PHP SDK [英] get application user's info - Facebook-GRAPH API-PHP SDK
本文介绍了获取应用程序用户的信息 - Facebook-GRAPH API-PHP SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用此代码转储应用程序用户的
i的一些信息!
i need to dump some info of the application user's i am using this code !
$fbme = $facebook->api('/me');
$str = $fbme['name'].' '.$fbme['sex'].' '.$fbme['hometown_location'].' '.$fbme['profile_url'].'\r\n';
$fp = fopen("data.txt", "w");
fwrite($fp, $str);
fclose($fp);
但这只会显示名字,没有别的!
为什么?
but this only shows the name, nothing else ! why ?
推荐答案
你正在弥补属性名称。这不是性,它是性别。等等。请阅读: http://developers.facebook.com/docs/reference/api/user/
You're making up property names. It's not sex, it's gender. And so on. Read: http://developers.facebook.com/docs/reference/api/user/
这篇关于获取应用程序用户的信息 - Facebook-GRAPH API-PHP SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文