本文介绍了连接到黑莓的Facebook API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一个SDK位置:

i found an sdk here:

http://www.baskoro.web.id/facebook-connect-blackberry-HOWTO.html

我试图运行在设备和模拟器code都有,但只显示白色画面,没有别的

i tried to run the code both on device and simulator but it shows only white screen and nothing else

我也试过这种没有结果的令牌:

i also tried this without result token:

.append(&安培;接下来= HTTP://www.facebook.com/connect/prompt_permissions.php API_KEY =+API_KEY+ \"&display=popup&v=1.0&next=http://www.facebook.com/connect/login_success.html?xxRESULTTOKENxx&fbconnect=true&ext_perm=read_stre...\")

但没有成功。

我也试过这种没有结果的令牌:

i also tried this without result token:

StringBuffer的URL =新的StringBuffer()
            .append(http://m.facebook.com/login.php?)
            .append(API_KEY =)
            .append(facebookFacade.getApplicationKey())
            .append(&安培; connect_display =页)
            .append(与& V = 1.0)
            .append(&安培; fbconnect =真正的)
            。附加(
                    &放大器;接下来=http://www.facebook.com/connect/login_success.html?xxRESULTTOKENxx&fbconnect=true
                    );

我没有结果令牌
如何获取????

i dont have result tokenhow to get that????

Plzzzzzzzz帮助

Plzzzzzzzz help

推荐答案

从下载图形API 。
之后,你必须添加两个想。

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

一个是当你想发布的照片​​给你的朋友墙上,你必须把一个更重要的价值在的JSONObject(请求) - 这是requestObject.put(target_id的ge​​tId())在publisePhoto方法facebookuser.java&安培; facebook.java

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

二是你必须改变
JSONObject的responseObject = fb.write(的getId()+/照片,requestObject,pPhoto.getMIMEType(),为imageData,真实);

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

的JSONObject responseObject = fb.write(的getId()+/photos?access_token=\"+Facebook.token,requestObject,pPhoto.getMIMEType(),为imageData,true);在FacebookUser.java&放大器; Facebook.java

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

其中token是Facebook.java静态字符串和存储的access_token的值(你必须将其添加)

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

这篇关于连接到黑莓的Facebook API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 18:09