Facebook connect in Blackberry application

一世执手 提交于 2019-12-12 04:15:22

问题


I want to integrate facebook like button to my blackberry application.I'm using facebook Blackberry SDK. Does any one has idea as to how do i got about that.


回答1:


Download graph api from http://sourceforge.net/projects/facebook-bb-sdk/. After that you have to add two thinks.

one is when you want to post a photo to your friends wall ,you have to put one more key-value in the JSONObject(Request) - that is requestObject.put("target_id",getid()) in publisePhoto method facebookuser.java & facebook.java

Second is you have to change JSONObject responseObject = fb.write(getId() + "/photos", requestObject, pPhoto.getMIMEType(), imageData, true);

to

JSONObject responseObject = fb.write(getId() + "/photos?access_token="+Facebook.token, requestObject, pPhoto.getMIMEType(), imageData, true);in FacebookUser.java & Facebook.java

where token is Static string from Facebook.java and store the value of access_token (you have to add it)

thanks parag



来源:https://stackoverflow.com/questions/4519427/facebook-connect-in-blackberry-application

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