开发者

How to upgrade Session Keys to OAuth Access Tokens Facebook?

I novice with RestFB Java library. In fact, I don't understand very well how to get an OAuth access tokens ? Before I used Facebook Api Java with API key and Secret key for authentification. Now, I want to use RestFB to replace this library.

Can you help me please ? Have you got some Java 开发者_StackOverflowexample for this new mechanism ?

Thank you very much,

Regards,

Anthony


Read this http://developers.facebook.com/docs/authentication/

Understand how to do it with curl, then it should be very easy to implement in java using whatever java client you wish. Its probably a good idea for you to take the time to understand oauth and how it works, then try to implement it. I know it saved me a ton of time!


Both of these app have fragments of OAuth code in filters/servlets but i've had trouble with both. They might give you some pointers

http://code.google.com/p/facebook-java-webapp/

http://code.google.com/p/checkflames/

http://jazzy.id.au/default/2008/03/19/facebook_authentication_in_java.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜