开发者

Get Account User Id FBML

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜