Facebook BlackBerry SDK

徘徊边缘 提交于 2019-12-13 22:16:28

问题


I want to implement facebook login and sharing in my blackberry app. Can you help me with a sample code of how to use it as I read the readme file it wasn't useful at all.


回答1:


A quick google with your title would have got you this:

http://sourceforge.net/projects/facebook-bb-sdk/




回答2:


Download jar from here and add it to your project http://sourceforge.net/projects/facebook-bb-sdk/

and write this code in to your project screen

ApplicationSettings sett = new ApplicationSettings("http://www.facebook.com/connect/login_success.html", 
        "facebooke  id", "secret key", Permissions.ALL_PERMISSIONS); 

facebook = Facebook.getInstance(sett);
user = facebook.getCurrentUser();

String result = user.publishPost(String pMessage, String pLink, 
        String pPictureurl, String pName, String pCaption, String pDescription, 
        String pSource);


来源:https://stackoverflow.com/questions/9374783/facebook-blackberry-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!