开发者

Get Account User Id FBML

开发者 https://www.devze.com 2023-01-06 22:51 出处:网络
I\'m new to the faceboo开发者_如何学Ck app making and I\'m just wondering how I can get the user who enabled the app (the one using it)\'s user id.

I'm new to the faceboo开发者_如何学Ck app making and I'm just wondering how I can get the user who enabled the app (the one using it)'s user id.

Thanks


Like this:

$facebook = new Facebook('API', 'SECRET');
echo $facebook->user;


The new PHP SDK is available here: http://github.com/facebook/php-sdk. It has an example that shows how to get the user id and profile: http://github.com/facebook/php-sdk/blob/master/examples/example.php.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号