开发者

Facebook connect in Blackberry application

I want to integrate facebook like button to my blackberry application.I'm using facebook Blackberry SDK. Does any one has ide开发者_JAVA技巧a as to how do i got about that.


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜